Which statement would create the table?

You want to create a sales table with the following column specifications and data types:
SALESID: Number
STOREID: Number
ITEMID: Number
QTY: Number, should be set to 1 when no value is specified
SLSDATE: Date, should be set to current date when no value is specified
PAYMENT: Characters up to 30 characters, should be set to CASH when no value is
specified Which statement would create the table?

You want to create a sales table with the following column specifications and data types:
SALESID: Number
STOREID: Number
ITEMID: Number
QTY: Number, should be set to 1 when no value is specified
SLSDATE: Date, should be set to current date when no value is specified
PAYMENT: Characters up to 30 characters, should be set to CASH when no value is
specified Which statement would create the table?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 9

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


Deepak

Deepak

Correct answer is Option B

mara

mara

Correct answer is Option B

Luca

Luca

B is Correct

mickael

mickael

SQL> CREATE TABLE sales (
salesid NUMBER (4),
storeid NUMBER (4),
itemid NUMBER (4),
qty NUMBER DEFAULT 1,
slsdate DATE DEFAULT SYSDATE,
payment VARCHAR2(30) DEFAULT ‘CASH’); 2 3 4 5 6 7

Table created.

B.

Oswaldo

Oswaldo

Yes, the correct answer is B, please fix the error at the result