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
D) either B or C
E) The authors do not demonstrate a preference for how to define a primary key.
Correct Answer:
Verified
Q27: SQL triggers can be used when the
Q28: If the values in an SQL view
Q30: A set of SQL statements stored in
Q32: The SQL command SELECT is used to
Q35: The values in an SQL view are
Q41: SQL triggers are created using the SQL
Q43: SQL triggers can be used when the
Q44: One advantage of using the CONSTRAINT phrase
Q45: Which SQL keyword is used to name
Q46: Which SQL keyword is used to delete
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