QuestionQ118

VerifiedRetrieving Data Using the SQL SELECT Statement

Using the customers table, generate a report that displays 50% of each credit amount for every income level. The report must not display duplicate credit amounts within an income level.

Which query produces the required result?

Question Image

Explanation

DISTINCT removes duplicate rows from the selected result. Applying it to the concatenation of cust_income_level and 50% of cust_credit_limit returns only unique income-level and calculated-credit-limit combinations, preventing repeated credit amounts within the same income level.

Community Discussion

No comments yet. Be the first to start the discussion!