SQL practice: Views
Chapter 30 · 8 questions · included in full access
Question 1 · easy
Solve it in your browserCreate a view customer_summary with customer_name, total_orders, total_spent.
Question 2 · easy
Solve it in your browserQuery it for customers who spent over 50000.
Question 3 · medium
Solve it in your browserQuery it for customers who have never ordered.
Question 4 · medium
Solve it in your browserCreate a view product_performance with product name, units sold and revenue.
Question 5 · medium
Solve it in your browserUse that view to find the top 5 products by revenue.
Question 6 · medium
Solve it in your browserCreate a view showing employees without their salary column.
Question 7 · hard
Solve it in your browserDrop the view from 30-6. (Look up DROP VIEW.)
Question 8 · hard
Solve it in your browserExplain why customer_summary needs LEFT JOIN rather than JOIN.
These questions are part of full access.
The first chapters of every track are free. Full access is a one-time payment.
See pricing