CREATE TABLE Employee(Empid NUMERIC NOT NULL, Name VARCHAR(20) , dept_name VARCHAR(20), Salary NUMERIC UNIQUE(Empid,Name));
INSERT INTO Employee VALUES(1002, Ross, CSE, 10000)
INSERT INTO Employee VALUES(1006,Ted,Finance, );
INSERT INTO Employee VALUES(1002,Rita,Sales,20000);
What will be the result of the query?
All statements executed
Error in create a statement
Error in insert into Employee values(1006,Ted,Finance, );
Error in insert into Employee values(1008,Ross,Sales,20000);
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Which of the following is not an integrity constraint?
Solution |
2
Discuss
|
Which of the following is used to delete the entries in the referenced table when the tuple is deleted in the course table?
Solution |
3
Discuss
|
In order to ensure that the value of the budget is non-negative which of the following should be used?
Solution |
4
Discuss
|
Drop Table cannot be used to drop a table referenced by a _________ constraint.
Solution |
5
Discuss
|
Domain constraints, functional dependency and referential integrity are special forms of _______
Solution |
6
Discuss
|
Which of the following can be addressed by enforcing a referential integrity constraint?
Solution |
7
Discuss
|
Data integrity constraints are used to
Solution |
8
Discuss
|
A foreign key is the one in which the ________ of one relation is referenced in another relation.
Solution |
9
Discuss
|
Which of the following is the right syntax for assertion?
Solution |
10
Discuss
|
____________ is preferred method for enforcing data integrity.
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved