QuestionQ155

VerifiedManipulating Data

Review the description of the EMPLOYEES table:

Question Image

Which two statements insert a row into the EMPLOYEES table?

Choose three
Explanation

An explicit column list can omit DEPARTMENT_ID because that column is nullable, so choice C is valid. An INSERT ... SELECT must return values corresponding to the target columns; choice E returns six compatible values in table-column order, and its scalar subquery supplies a single DATE value. Choice F also supplies six compatible values in implicit column order; a one-space character literal is not NULL, so it satisfies the LAST_NAME NOT NULL constraint. Thus the item is flawed: it has three valid statements, not two.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!