0 votes
50 views
in SQL by (0 points)
closed by
You need to generate a report that displays the IDs or all products in the COSTS table whose unit
han the unit cost. The details should be displayed in the descending order of 25% of the unit cos
query:
closed

1 Answer

0 votes
by (0 points)
 
Best answer
SELECT prod_id
FROM costs
    WHERE unit_price >= unit_cost*1.25
    ORDER BY unit_cost*0.25 DESC;

2.8k questions

2.8k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...