Instruction
Good job! Let's do one more exercise of this kind.
Exercise
For each employee, show the percentage of total revenue (before discount) generated by orders shipped to the USA and to Germany. Show the following columns:
employee_id.first_name.last_name.rev_percentage_usa.rev_percentage_germany.
Round the percentages to two decimal places.
Stuck? Here's a hint!
Write two CTEs, usa_revenue and germany_revenue. You can find the total revenue (before discount) generated by orders shipped to the USA with the following code:
SUM(CASE
WHEN ship_country = 'USA'
THEN unit_price * quantity
ELSE 0
END)




