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
Q47: The SQL keyword used to limit column
Q48: Which SQL keyword is used to name
Q49: To set a column value to an
Q50: The SQL Server DBMS supports the SQL
Q51: Unlike application code,stored procedures are never distributed
Q53: Stored procedures have the advantage of greater
Q54: If the table PRODUCT has a column
Q55: One advantage of using the CONSTRAINT phrase
Q56: Which SQL keyword is used to change
Q57: Because SQL stored procedures allow and encourage
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents