You are on page 1of 3

6/26/2021 Blank Quiz - Google Forms

Blank Quiz

Questions Responses Total points: 5

Integrity Constraints
Form description

To include integrity constraint in an existing relation use : *

create table

modify table

drop table

alter table

Which of the following is not an integrity constraint? *

not null

positive

https://docs.google.com/forms/d/1-LITuiB4XLPxS22ySZkw_-Yiie9ofEvExVkxPbu74Kk/edit 1/3
6/26/2021 Blank Quiz - Google Forms

unique

check 'predicate'

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);

all statements will be executed

error in create statement

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

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

CREATE TABLE Manager(ID NUMERIC,Name VARCHAR(20),budget NUMERIC,Details *


VARCHAR(30)); Inorder to ensure that the value of budget is non-negative which of the
following should be used?

Check(budget>0)

Check(budget<0)

https://docs.google.com/forms/d/1-LITuiB4XLPxS22ySZkw_-Yiie9ofEvExVkxPbu74Kk/edit 2/3
6/26/2021 Blank Quiz - Google Forms

Alter(budget>0)

Alter(budget<0)

Foreign key is the one in which the ________ of one relation is referenced in another relation. *

Foreign key

primary key

references

check constraint

https://docs.google.com/forms/d/1-LITuiB4XLPxS22ySZkw_-Yiie9ofEvExVkxPbu74Kk/edit 3/3

You might also like