Which statement is true regarding the above command?

See the Exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and ITEMS tables:


The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table. Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Evaluate the following the CREATE TABLE command:
Exhibit:


Which statement is true regarding the above command?
A. The NEW_SALES table would not get created because the column names in the CREATE TABLE command and the SELECT clause do not match
B. The NEW_SALES table would get created and all the NOT NULL constraints defined on the specified columns would be passed to the new table
C. The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the column definition
D. The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the specified columns would be passed to the new table

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which statement is true regarding the above command?

  1. create table eee(emp_id,job_id,hire_date default sysdate) as
    select employee_id , job_id, department_id from employees ;

    SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got DATE
    00932. 00000 – “inconsistent datatypes: expected %s got %s”
    *Cause:
    *Action:

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.