Question: 3 . What does the following statement do: ALTER TABLE DEPT _ TEST ADD CONSTRAINT unq _ dept _ det UNIQUE ( DEPT _ ID
What does the following statement do:
ALTER TABLE DEPTTEST
ADD CONSTRAINT unqdeptdet UNIQUE DEPTID DEPARTMENTNAME ;
It alters the DEPTTEST table to add a composite primary key comprising of the DEPTID and DEPARTMENTNAME.
It alters the DEPTTEST table to add a composite unique key comprising of the DEPTID and DEPARTMENTNAME.
It alters the DEPTTEST table to add a composite foreign key comprising of the DEPTID and DEPARTMENTNAME.
It alters the DEPTTEST table to add a the DEPTID and DEPARTMENTNAME columns.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
