Question: Why does average not exist CREATE VIEW clean _ data AS SELECT product _ id , COALESCE ( product _ type, 'Unknown' ) AS product
Why does average not exist "CREATE VIEW cleandata AS
SELECT
productid
COALESCEproducttype, 'Unknown' AS producttype,
COALESCEbrand 'Unknown' AS brand,
COALESCEweightSELECT ROUNDAVGweight FROM Products WHERE weight IS NOT NULL AS weight,
COALESCEpriceSELECT ROUNDAVGprice FROM Products WHERE price IS NOT NULL
AS price,
COALESCEaverageunitssold, AS averageunitssold,
COALESCEyearadded, AS yearadded,
COALESCEstocklocation, 'Unknown' AS stocklocation
FROM Products;"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
