Question: 3 . What does the following statement do: ALTER TABLE DEPT _ TEST ADD CONSTRAINT unq _ dept _ det UNIQUE ( DEPT _ ID

3. What does the following statement do:
ALTER TABLE DEPT_TEST
ADD CONSTRAINT unq_dept_det UNIQUE (DEPT_ID, DEPARTMENT_NAME) ;
It alters the DEPT_TEST table to add a composite primary key comprising of the DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a composite unique key comprising of the DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a composite foreign key comprising of the DEPT_ID and DEPARTMENT_NAME.
It alters the DEPT_TEST table to add a the DEPT_ID and DEPARTMENT_NAME columns.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!