Microsoft
98-364 · Question #5
Remo works as a Database Designer for Tech Inc. He wants to create a table named Product. He issues the following query to create the Product table: - CREATE Product ( - ProductID Char (10) NOT…
The correct answer is A. An attribute declared as a primary key cannot contain NULL values. D. ProductName is declared as Varchar without specifying the width of the column. See the full explanation below for the reasoning.
Question
Remo works as a Database Designer for Tech Inc. He wants to create a table named Product. He issues the following query to create the Product table:
- CREATE Product (
- ProductID Char (10) NOT NULL,
- OrderID Char (10) NULL
- ProductName Varchar NOT NULL,
- Primary key (OrderID, ProductID))
What are the errors in the above query? Each correct answer represents a complete solution. Choose two.
Options
- AAn attribute declared as a primary key cannot contain NULL values.
- BEach attribute should be defined as a primary key separately.
- CA table cannot have two primary keys.
- DProductName is declared as Varchar without specifying the width of the column.
How the community answered
(55 responses)- A80% (44)
- B13% (7)
- C7% (4)
Community Discussion
No community discussion yet for this question.