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 author does not demonstrate a preference for how to define a primary key.
Correct Answer:
Verified
Q31: SQL triggers are used for providing default
Q39: SQL triggers can be used with SQL
Q42: If a trigger is being written to
Q43: When a trigger is fired,the DBMS makes
Q45: Which SQL keyword is used to name
Q50: The SQL Server DBMS supports the SQL
Q51: Unlike application code,stored procedures are never distributed
Q56: To set a column value to an
Q57: Because SQL stored procedures allow and encourage
Q58: One advantage of using the CONSTRAINT phrase
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