Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Get to know the database
Basic revenue metrics
Summary

Instruction

Great! One more exercise!

Exercise

For each employee, find their quarter-to-date revenue. Show three columns: employee_id, last_name, and total_revenue. Use a DATE_TRUNC() function.

Stuck? Here's a hint!

Join the orders and employees tables. Use the following condition in the WHERE clause:

order_date >= DATE_TRUNC('quarter', CURRENT_TIMESTAMP)