cysunshine
04-21-2003, 05:01 PM
Hi,
I am designing a database for a hotel for recording facilities usage. I have two tables in my database, as follows:
Table1: Facilities Charge
Field: Facility No
Field: Facility Type
Field: Charge per Hour
Field: Charge per Night
Table2: Facilities Usage
Field: Facility No
Field: Order No
Field: Room No
Field: Starting Time
Field: Finish Time
Field: Starting Date
Field: Finish Date
There are four types of facilities, renting bicycles, rowing boats, sailing boats, and security car park. The first 3 are calculated on an hourly basis and the last one is calculated on a daily basis (that's why I have seperate fields, is this bad?).
I have created a query based on "Facilities Usage" to insert columns calculating the total time used and most of all, the total charge for a particular order. I am not sure how to use a "match" function like in Excel to match the facility no entered to the relevant charge. Can anyone please help? I'll be deeply grateful.
Sunny
I am designing a database for a hotel for recording facilities usage. I have two tables in my database, as follows:
Table1: Facilities Charge
Field: Facility No
Field: Facility Type
Field: Charge per Hour
Field: Charge per Night
Table2: Facilities Usage
Field: Facility No
Field: Order No
Field: Room No
Field: Starting Time
Field: Finish Time
Field: Starting Date
Field: Finish Date
There are four types of facilities, renting bicycles, rowing boats, sailing boats, and security car park. The first 3 are calculated on an hourly basis and the last one is calculated on a daily basis (that's why I have seperate fields, is this bad?).
I have created a query based on "Facilities Usage" to insert columns calculating the total time used and most of all, the total charge for a particular order. I am not sure how to use a "match" function like in Excel to match the facility no entered to the relevant charge. Can anyone please help? I'll be deeply grateful.
Sunny