Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

CONSTRAINTS CHAPTER-4 EXAM QUESTIONS AND CORRECT ANSWERS

Document preview thumbnail
Preview 2 out of 7 pages

CONSTRAINTS CHAPTER-4 EXAM QUESTIONS AND CORRECT ANSWERS D. None of the above statements is correct - CORRECT ANSWERS statements is correct? Which of the following A. A PRIMARY KEY constraint allows NULL values in the primary key column(s) B. You can enable a dropped constraint if you need it in the future C. Every table must have at least one PRIMARY KEY constraint, or Oracle 11g doesn't allow the table to be created D. None of the above statements is correct A. PRIMARY KEYS - CORRECT ANSWERS type? A. PRIMARY KEYS B. UNIQUE C. CHECK D. FOREIGN KEY Which of the following is not a valid constraint C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); - CORRECT ANSWERS Which of the following SQL statements is invalid and returns an error message? A. ALTER TABLE books ADD CONSTRAINT books_pubid_uk UNIQUE (pubid); B. ALTER TABLE books ADD CONSTRAINT books_pubid_pk Primary Key (pubid); C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); D. ALTER TABLE books ADD CONSTRAINT books_pubid_fk FOREIGN KEY (pubid) REFERENCES publisher (pubid); E. All of the above statements are invalid

Content preview

CONSTRAINTS CHAPTER-4 EXAM QUESTIONS
AND CORRECT ANSWERS
D. None of the above statements is correct - CORRECT ANSWERS Which of the following
statements is correct?

A. A PRIMARY KEY constraint allows NULL values in the primary key column(s)

B. You can enable a dropped constraint if you need it in the future

C. Every table must have at least one PRIMARY KEY constraint, or Oracle 11g doesn't allow the
table to be created

D. None of the above statements is correct



A. PRIMARY KEYS - CORRECT ANSWERS Which of the following is not a valid constraint
type?

A. PRIMARY KEYS

B. UNIQUE

C. CHECK

D. FOREIGN KEY



C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); - CORRECT
ANSWERS Which of the following SQL statements is invalid and returns an error message?

A. ALTER TABLE books ADD CONSTRAINT books_pubid_uk UNIQUE (pubid);

B. ALTER TABLE books ADD CONSTRAINT books_pubid_pk Primary Key (pubid);

C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid);

D. ALTER TABLE books ADD CONSTRAINT books_pubid_fk FOREIGN KEY (pubid) REFERENCES
publisher (pubid);

E. All of the above statements are invalid

, A. 1 - CORRECT ANSWERS What are the maximum number of PRIMARY KEY constraints
allowed for a table?

A. 1

B. 2

C. 30

D. 255



E. None of the above commands is valid - CORRECT ANSWERS 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



A. 0 - CORRECT ANSWERS How many NOT NULL constraints can be created at the table
level by using the CREATE TABLE command?

A. 0

B. 1

C. 12

D. 30

E. 255



C. the child table in a parent-child relationship - CORRECT ANSWERS The FOREIGN KEY
constraint should be added to which table?

A. the table representing the "one" side of a one-to-many relationship

B. the parent table in a parent-child relationship

Document information

Uploaded on
December 3, 2025
Number of pages
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
VictorGrades
3.0
(2)
Sold
23
Followers
0
Items
1359
Last sold
1 day ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions