Now that we've reorganized our database, it's time to write queries to generate our reports, including the first 5 as well.

As discussed earlier, for each one of these reports we need to answer the following questions:

  1. What are the fields/attributes we want to show in our result set? 

  2. What are the data sources? 

  3. What criteria/conditions are to be met for those results? 

Note: In this case, we’ll have more than one table (data source) and the filter criteria/condition will require conditions that will join these tables.

Report 1: List of SalesPerson employees

Write a query to print the list of SalesPerson employees.

Get hands-on with 1400+ tech skills courses.