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

Explanation:



Leave a Reply 10

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


Marcelo

Marcelo

This answer is wrong!!!!
The option correct is B

Marcelo

Marcelo

SQL> CREATE TABLE TB_TEST(COD NUMBER, PAYMENT VARCHAR2(20) DEFAULT = “CASH”);
CREATE TABLE TB_TEST(COD NUMBER, PAYMENT VARCHAR2(20) DEFAULT = “CASH”)
*
ERRO na linha 1:
ORA-00936: expressÒo nÒo encontrada

SQL> CREATE TABLE TB_TEST(COD NUMBER, PAYMENT VARCHAR2(20) DEFAULT ‘CASH’);

Tabela criada.

Mac/Philippines

Mac/Philippines

The answer is wrong. Option B is the correct answer.

Leandro

Leandro

This site is full of wrong answers. I think they do it intentionally so people fail and they can sell more of this bullshit.

Mr. T

Mr. T

@Leandro: You name it.

Selling certificates is just one more business case to Oracle… 😉

Google

Google

Usually posts some really exciting stuff like this. If you are new to this site.

visit the website

visit the website

It’s in reality a great and helpful piece of information. I’m happy that you simply shared this helpful information with us. Please stay us up to date like this. Thanks for sharing.|

Suyog

Suyog

B is correct.