Creating sales reports

  1. Copy the code from the previous example's script to create a script that asks the user for a salesperson's ID number and a start and end date.

  2. Use the script to output a sales report for the chosen salesperson for the period between the two dates.

Advanced exercises

  1. Create an extra option for "all" sales people, which shows all the sales people in descending order of sales made. You may need to use an SQL group by clause to achieve this.