Which of the following can be addressed by enforcing a referential integrity constraint?
Which of the following is the right syntax for the assertion?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which of the following is used to delete the entries in the referenced table when the tuple is deleted in course table?
CREATE TABLE course
( . . .
FOREIGN KEY (dept name) REFERENCES department
. . . );
Inorder to ensure that the value of budget is non-negative which of the following should be used?
CREATE TABLE Manager(ID NUMERIC,Name VARCHAR(20),budget NUMERIC,Details VARCHAR(30));
Which of the following is not an integrity constraint?
Domain constraints, functional dependency and referential integrity are special forms of _________
Foreign key is the one in which the ________ of one relation is referenced in another relation.
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);
To include integrity constraint in an existing relation use :