Examine the description of the SALES table:
The SALES table has 55,000 rows.
Examine this statement:
Which two statements are true? (Choose two.)
Examine the description of the SALES table:
The SALES table has 55,000 rows.
Examine this statement:
Which two statements are true? (Choose two.)
The statement 'CREATE TABLE sales1 AS SELECT ... FROM sales WHERE 1=1;' creates a new table sales1 with the same columns as specified in the SELECT query but without any data because the WHERE clause condition '1=1' doesn't filter any rows (which essentially means 'true' for all rows). Thus, SALES1 is created with no rows. Additionally, the NOT NULL constraints on the selected columns (product_id, customer_id, quantity_sold, and price) from the SALES table are retained in the new table SALES1.
DE // D - At using subquery to make table, only 'Not Null' constraint will be copied
D E is correct
DE is correct, tested with two tables ports and ports1 create table ports1 (port_id,port_name,country) as select port_id,port_name, country from ports where 1=1;