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.
Use the script to output a sales report for the chosen salesperson for the period between the two dates.
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.