create table sales
(
product_id number(10) constraint sales_product_id_nn not null,
customer_id number(10) constraint sales_customer_id_nn not null,
time_id date constraint sales_time_id_nn not null,
channel_id number(5) constraint sales_channel_id_nn not null,
promo_id number(5) constraint sales_promo_id_nn not null,
quantity_sold number(10,2) constraint sales_quantity_sold_nn not null,
price number(10,2),
amount_sold number(10,2) constraint sales_amount_sold_nn not null
);
select * from sales;
insert into sales
values(1, 33, sysdate, 5, 6, 10, 10, 11);
insert into sales
values(2, 34, sysdate, 7, 8, 13, 16, 14);
create table mysales(prod_id, cust_id, quantity_sold, price)
as
select product_id, customer_id, quantity_sold, price
from sales
where 1=2;
select * from mysales;
desc mysales;
답 : A, C