Consider the following tables for the RENTAL_PROPERTY database:
BRANCH (Bno, Street, Suburb, Pcode, Tel_No, Fax_No)
STAFF (Sno, Fname, Lname, Address, Tel_No, Position, Sex, DOB, Salary, Bno)
PROPERTY_FOR_RENT (Pno, Street, Suburb, Pcode, Type, Rooms, Rent, Ono, Sno, Bno)
CLIENT (Cno, Fname, Lname, Address, Tel_No, Pref_Type, Max_Rent, Bno)
OWNER (Ono, Fname, Lname, Address, Tel_No)
VIEWING (Cno, Pno, Date, Comment)
The data for tables BRANCH, STAFF, and PROPERTY_FOR_RENT are as follows:
Branch Table
Bno Street Suburb Pcode Tel_No Fax_No
B2 56 Clover St Melbourne 3000 9662 7723 9662 7724
B3 163 Main St Kew 3101 9859 8301 9859 0231
B4 32 Manse Rd Bundoora 3803 9479 1284 9479 1212
B5 22 Deer Rd Melbourne 3000 9662 8733 9662 4455
B7 16 Argyll St Hawthorn 3122 9818 7444 9818 6666
Staff Table
Sno FName LName Address Tel_No Position Sex DOB Salary Bno
SA9 Mary Howe 2 Elm PI, Hawthorn 3122 Assistant F 19-Feb-70 $27,000.00 B7
SG14 David Ford 63 Ashby St, Kew 3101 0411-942-432 Deputy M 24-Mar-58 $51,000.00 B3
SG37 Ann Beech 81 George St, Kew 3101 0413-983-983 Snr Assistant F 10-Nov-60 $36,000.00 B3
SG5 Susan Brand 5 Western Rd, Kew 3101 0411-412-242 Manager F 03-Jun-40 $72,000.00 B3
SL21 John White 19 Taylor St, Melbourne 3000 0418-444-234 Manager M 01-Oct-45 $90,000.00 B5
SL41 Julie Lee 28 Malvern Rd, East Kew 3102 0411-002-332 Assistant F 13-Jun-65 $27,000.00 B5
Property_For_Rent Table
Pno Street Suburb Pcode Type Rooms Rent Ono Sno Bno
PA14 16 High St Hawthorn 3122 House 6 $650.00 CO46 SA9 B7
PG16 5 Novar Rd Kew 3101 Flat 4 $450.00 CO93 SG14 B3
PG21 18 Dale Rd Kew 3101 House 5 $600.00 CO87 SG37 B3
PG36 2 Manor Rd Kew 3101 Flat 3 $375.00 CO93 SG37 B3
PG4 6 Lawrence St Kew 3101 Flat 3 $350.00 CO40 SG14 B3
PL94 6 Argyll St Melbourne 3000 Flat 4 $400.00 CO87 SL41 B5
Based on the above tables:
a. Write a stored procedure which receives a staff number (Sno) and a rental price (Rent) as inputs, and displays the list of properties handled by that staff, which rental price is not more than the specified rental price.