CD - Members CD - Bookings CD - Facilities: Column Name Data Type Column Name Data Type Column Name
CD - Members CD - Bookings CD - Facilities: Column Name Data Type Column Name Data Type Column Name
POINTS TO NOTE
Recommendedby is the memid of the person who recommended
in cd.bookings, a booking can be made by a guest or by a member. In case of guest, cd.bookings.memid = 0 otherwise it is = m
No of hours =( (sum(No of slots) + 10)/20)*10
If booking made by guest then revenue = no_of_Slots_booked * guestcost
If booking made by member then revenue = no_of_Slots_booked * membercost
Total Revenue of facilities = sum of revenue of all bookings made for that facility
Total Revenue on a date = sum of revenue of all bookings made on that date (refer to starttime column)
uch as tennis courts, and
use their information to
cises, and the database schema
cd.facilities
Data Type
integer
varchar(200)
numeric
numeric
numeric
numeric