Welcome Guest, Not a member yet? Register   Sign In
MySQL Design Question
#11

[eluser]insub2[/eluser]
I think I've settled on this:
Code:
Tables
----------------------------------------------
Business [ busID, *busData* ]
Locations [ locID, *locData* ]
BusinessLocations [ branchID, busID, locID ]

Review [ revID, busID, userID, *revData* ]
ReviewLocationss [ revID, branchID ]

Airline [ aLineID, busID, *aLineData* ]
Airport [ aPortID, locID, *aPortData* ]

It's pretty much what I had before with the addition of the BranchID to describe the Business Location Relationship. This should make validating that Business J is actually at Location #27 more direct.

I left the busID in the Review table because, though it's not fully normalized, performing the joins required to get a busID for a Review would be a bit much for something that is used to lookup reveiws so much. Plus, in the unlikely but possible event that a Review's BranchIDs point to multiple businesses, there will be a "master source" for making repairs.


Messages In This Thread
MySQL Design Question - by El Forum - 12-18-2009, 04:43 AM
MySQL Design Question - by El Forum - 12-18-2009, 05:15 AM
MySQL Design Question - by El Forum - 12-18-2009, 09:28 AM
MySQL Design Question - by El Forum - 12-18-2009, 09:33 AM
MySQL Design Question - by El Forum - 12-18-2009, 10:02 AM
MySQL Design Question - by El Forum - 12-18-2009, 03:48 PM
MySQL Design Question - by El Forum - 12-18-2009, 04:25 PM
MySQL Design Question - by El Forum - 12-18-2009, 04:31 PM
MySQL Design Question - by El Forum - 12-18-2009, 04:35 PM
MySQL Design Question - by El Forum - 12-18-2009, 04:49 PM
MySQL Design Question - by El Forum - 12-18-2009, 05:05 PM
MySQL Design Question - by El Forum - 12-18-2009, 05:08 PM
MySQL Design Question - by El Forum - 12-18-2009, 05:12 PM
MySQL Design Question - by El Forum - 12-18-2009, 05:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB