Best April deals - 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: EmployeeId, LastName, and TotalRevenue.

Stuck? Here's a hint!

Join the Orders and Employees tables. Use the following condition in the WHERE clause:

OrderDate >= DATEADD(Quarter, DATEDIFF(Quarter, 0, GETDATE()), 0)