A database administrator is creating a table, which will contain customer data, for an online business. Which of the following SQL syntaxes should the administrator use to create an object?
A)
B)
C)
D)
The SQL syntax that the administrator should use to create an object is option B. This syntax uses theCREATE TABLEstatement to define a new table namedcustomerwith four columns:customer_id,name,email, andphone. Each column has a data type and a constraint, such asNOT NULLorPRIMARY KEY. The other options either have syntax errors, use incorrect keywords, or do not specify the table name or columns correctly.Reference:CompTIA DataSys+ Course Outline, Domain 1.0 Database Fundamentals, Objective 1.1 Given a scenario, identify and apply database structure types.
Limited Time Offer
25%
Off
Werner
18 days agoBlondell
23 days agoShawn
1 month agoBobbie
2 months agoMindy
2 months agoWhitley
2 months ago