Query for multiple columns in GROUP BY clause:
Explanation:
· Here
we used SUM() function to get the total_delivery in the delivery table.
· Released_status
‘C’ for Completed and ‘D’ for Delivered, This conditions are used to
find delivered orders.
· GROUP
BY requested_quantity, unit_price, date_requested to group the rows based on
the three columns.
No comments:
Post a Comment