prabha_friend
Prabhakaran Karuppaih
- Local time
- Today, 17:41
- Joined
- Mar 22, 2009
- Messages
- 785
Changed to "EON" "EFOR" and "Trip_Drop""On" and "Drop" are reserved words in Access, also your IDs should be clearly defined i.e. BookingID not just ID.
1. Building a Tool for a Cab-Hiring Agency.1. Give us some words. We know nothing of your database nor organization. Tell us what your organization does, then tell us how this database will assist you in that.
2. Circular relationship. There should only be one way to travel between 2 tables in a relationship. Driver, Expenditure and Trip form a loop--one of those relationships should go. Can a driver have an expenditure for a trip that he's not part of? Driver should only be linked to one of those tables.
3. Better field names.
3A--as others have said you are using reserved words.
3B--overly generic names. DateVal tells me nothing about what that date represents, just that it is a date of some sort for some reason.
3C--Only use alphanumeric and underscores in names. That means no spaces or special characters. It will make coding an querying easier in the future.
4. A Booking can have multiple trips? Explain that with an example please.
Booking, Trip and Closing are Single Entity only. But has been seperated as the processes are happening on different date/time intervals...
As proven by the comments in this threat, this is confusing and thus not a good idea.Anyways... TRIP.BookingID and Closing.TripNo has been set to indexed(No Dpulicates)
Excellent piece of Advice. Thanks Sonic...As proven by the comments in this threat, this is confusing and thus not a good idea.
Get rid of the artificial Ids in the Trip and Closing tables, and make Booking.Id their primary key. Then the relations will be clearly shown as 1:1 and it will allow you create queries without the requirement to use the intermediary tables to retrieve the artificial keys.
Without copy and pasting from my post on January 16th, please tell me what my main point of that post was. Then tell me how your latest screenshot took that advice into consideration.