Multiple Choice
Which of the following illustrates the authors' preferred style of defining a primary key?
A) CREATE TABLE CUSTOMER ( CustomerID Integer Primary Key
LastName Char(35) Not Null
First Name Char(25) Null
B) CREATE TABLE CUSTOMER ( CustomerID Integer Not Null
LastName Char(35) Not Null
First Name Char(25) Null
CONSTRAINT CustomerPK PRIMARY KEY (CustomerID)
C) CREATE TABLE CUSTOMER ( CustomerID Integer Not Null
LastName Char(35) Not Null
First Name Char(25) Null
) ;
ALTER TABLE CUSTOMER
ADD CONSTRAINT CustomerPK PRIMARY KEY (CustomerID) ;
D) Both B and C are correct
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Which SQL keyword is used to add
Q3: The SQL keyword CONSTRAINT can be used
Q4: To set a column value to an
Q5: Rows in a table can be changed
Q6: According to the SQL-92 standard,statements used to
Q8: SQL triggers can be used when the
Q9: A stored program that is attached to
Q10: SQL views are constructed from SELECT statements.
Q11: The following database will be used in
Q12: The Oracle DBMS supports the SQL BEFORE