I am doing a facilities reservation database. Situation as below:
Every member has a membership which is authorized some facilities. Therefore, if a member reserve a facilities which is not authorized to his membership, it need to be charged and store into the reservation record table as an attribute reservation_fees.
How can i do the constraint? or check?

4 Years
Discussion Span
Last Post by LastMitch


How can i do the constraint? or check?

Try to provide a table and explain with the table so it would be easier to visualized the query.

This is the table I came up with base on your words:

Table: facilities
Field Name: ID
Data Type: Member

Field Name: Authorized
Data Type: Membership

Field Name: Reservation
Data Type: Date/Time

Field Name: Fees
Data Type: Number 
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.