Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SELECT product _ id , COALESCE ( product _ type, 'Unknown' ) AS product _ type, COALESCE ( brand , 'Unknown'

SELECT
"product_id",
COALESCE("product_type", 'Unknown') AS "product_type",
COALESCE("brand", 'Unknown') AS "brand",
--COALESCE("weight",(SELECT PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY "weight") FROM products))::numeric(10,2) AS "weight",
COALESCE("price", PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY "price")::numeric AS "price",
COALESCE("average_units_sold", 0) AS "average_units_sold",
COALESCE("year_added", 2022) AS "year_added",
COALESCE("stock_location", 'Unknown') AS "stock_location"
FROM
products;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions