
Ultimate access to all questions.
The data science team has reported that a column named 'average price' is missing from the 'sales' table. This column can be calculated using the 'units sold' and 'sales amount' columns. Which of the following SQL statements would correctly reload the data with the additional 'average price' column?
A
INSERT OVERWRITE sales SELECT , salesAmt/unitsSold as avgPrice FROM sales
B
COPY INTO SALES AS SELECT , salesAmt/unitsSold as avgPrice FROM sales
C
CREATE OR REPLACE TABLE sales AS SELECT , salesAmt/unitsSold as avgPrice FROM sales
D
MERGE INTO sales USING (SELECT , salesAmt/unitsSold as avgPrice FROM sales)
E
OVERWRITE sales AS SELECT , salesAmt/unitsSold as avgPrice FROM sales