Question: Which of the following is a valid SQL command? a. ALTER TABLE books ADD CONSTRAINT UNIQUE (pubid); b. ALTER TABLE books ADD CONSTRAINT PRIMARY KEY

Which of the following is a valid SQL command?
a. ALTER TABLE books ADD CONSTRAINT UNIQUE (pubid);
b. ALTER TABLE books ADD CONSTRAINT PRIMARY KEY (pubid);
c. ALTER TABLE books MODIFY (pubid CONSTRAINT NOT NULL);
d. ALTER TABLE books ADD FOREIGN KEY CONSTRAINT (pubid) REFERENCES publisher (pubid);
e. None of the above commands is valid.

Step by Step Solution

3.49 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

e None ... View full answer

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

Document Format (2 attachments)

PDF file Icon

1803_60b8c12122684_716081.pdf

180 KBs PDF File

Word file Icon

1803_60b8c12122684_716081.docx

120 KBs Word File

Students Have Also Explored These Related Oracle 12c SQL Questions!