adplus-dvertising
frame-decoration

Question

What will be the result of the query?
CREATE TABLE Employee(Emp_id NUMERIC NOT NULL, Name VARCHAR(20) , dept_name VARCHAR(20), Salary NUMERIC UNIQUE(Emp_id,Name));
INSERT INTO Employee VALUES(1002, Ross, CSE, 10000)
INSERT INTO Employee VALUES(1006,Ted,Finance, );
INSERT INTO Employee VALUES(1002,Rita,Sales,20000);

a.

All statements executed

b.

Error in create statement

c.

Error in insert into Employee values(1006,Ted,Finance, );

d.

Error in insert into Employee values(1008,Ross,Sales,20000);

Posted under DBMS

Answer: (d).Error in insert into Employee values(1008,Ross,Sales,20000);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the result of the query?

Similar Questions

Discover Related MCQs

Q. Domain constraints, functional dependency and referential integrity are special forms of _________

Q. Create index studentID_index on student(ID);
Here which one denotes the relation for which index is created ?

Q. Values of one type can be converted to another domain using which of the following ?

Q. CREATE DOMAIN YearlySalary NUMERIC(8,2)
CONSTRAINT salary VALUE test __________;

In order to ensure that an instructor’s salary domain allows only values greater than a specified value use:

Q. In contemporary databases the top level of the hierarchy consists of ______ each of which can contain _____

Q. The database administrator who authorizes all the new users, modifies database and takes grants privilege is

Q. Which of the following is a basic form of grant statement ?

Q. Which of the following is used to access the database server at time of executing the program and get the data from the server accordingly ?

Q. Which of the following header must be included in java program to establish database connectivity using JDBC ?

Q. DriverManager.getConnection(_______ , ______ , ______)
What are the two parameters that are included ?

Q. Which of the following invokes functions in sql ?

Q. Which of the following function is used to find the column count of the particular resultset ?

Q. Which of the following is a following statement is a prepared statements ?

Q. Which of the following is used as the embedded SQL in COBOL ?

Q. Which of the following is used to distinguish the variables in SQL from the host language variables ?

Q. The update statement can be executed in host language using

Q. Which of the following is used to access large objects from a database ?

Q. Which of the following is used to input the entry and give the result in a variable in a procedure ?

Q. The format for compound statement is

Q. Repeat
sequence of statements;
__________________
end repeat

Fill in the correct option :