Which CREATE TABLE statement should you use?

You are a database administrator on an instance of SQL Server 2008. You need to create an Event table that will store the following data:
• A fixed-length, three-character alphanumeric code identifying the type of event
• The event description, with a maximum length of 30 characters
• The number of seats available for the event, with a maximum value of 50
• A flag to indicate if the event is public or private
• A event rating between 0 and 10 with two decimal places to the right of the decimal
Your table will only be used by English-speaking users, and you want to minimize the storage requirements for the table.
Which CREATE TABLE statement should you use?
A. CREATE TABLE Event (
EventID int,Code char(3),Description varchar(30),SeatsAvail smallint,TypeFlag bit,Rating decimal(3,2));
B. CREATE TABLE Event (
EventID int,Code char(3),Description varchar(30),SeatsAvail int,TypeFlag bit,Rating decimal(4,2));
C. CREATE TABLE Event (
EventID int,Code char(3),Description varchar(30),SeatsAvail tinyint,TypeFlag bit,Rating decimal(3,2));
D. CREATE TABLE Event (
EventID int,Code char(3),Description varchar(30),SeatsAvail tinyint,TypeFlag bit,Rating decimal(4,2));

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.