which cannot contain null?

Which statement adds a column called salary to the employees table having 100 rows, which
cannot contain null?

Which statement adds a column called salary to the employees table having 100 rows, which
cannot contain null?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
http://www.comp.nus.edu.sg/~ooibc/courses/sql/ddl_table.htm (see changing table
structures)



Leave a Reply 10

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


Thomaz

Thomaz

Really,
the correct answer on this question is option C.
If you wanna add a new column, it should have a value default.

HelloWorld

HelloWorld

No, default value is not necessary for a column.
The ans is A.

dames

dames

If the table is empty.
However, as the table has already 100 rows of data, DEFAULT is required.
Therefore C.

donald

donald

I’m surprised but…. ONLY answer ‘C’ is correct.
Try it: Alter Table Employee add salary number(8,2) not null;
Result: ERROR at line 1: ORA-01758: table must be empty to add mandatory (NOT NULL) column

jj

jj

Who the fuck marked correct answer as A?!

Adeel

Adeel

C is the correct answer Verified.

Paruchus

Paruchus

Yes C is correct answer

Suyog

Suyog

C is correct answer…Tested