RSS Forums RSS

your ideas on database design???

Please support our Database Design advertiser: Programming Forums
Reply
Posts: 24
Reputation: atal is an unknown quantity at this point 
Solved Threads: 0
atal atal is offline Offline
Newbie Poster

Question your ideas on database design???

  #1  
Aug 4th, 2007
Hello All,
I am working on a database, and have doubts in two fields (startpoint, and endpoint locations)therefor want your comments and suggestions, my database tables look like the following:

[Projects table:]
project_id
project_name
startpoint_location_id
startpoint_latitude
startpoint_longitue
endpoint_location_id
endpoint_latitude
endpoint_longitude

[Location table:]
location_id
location_name


the startpoint_location_id and endpoint_location_id is linked to the location table,it means that Location table has one-to-many relationship with projects table.

Now my question is whether this is a good database design or should I handle it differently, please update me as soon as possible.

Thank you
AddThis Social Bookmark Button
Reply With Quote  
Posts: 160
Reputation: kb.net is an unknown quantity at this point 
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: your ideas on database design???

  #2  
Aug 18th, 2007
Hi,
(First hope you have already found a solution)Usually this is the ultimate structure. But in your queeries you shall use outer oins to the loaction table espically if you suspect that the either start or end points my be kept empty.
Reply With Quote  
Posts: 24
Reputation: atal is an unknown quantity at this point 
Solved Threads: 0
atal atal is offline Offline
Newbie Poster

Re: your ideas on database design???

  #3  
Aug 18th, 2007
Thank you, kb.net, actually I have already passed the database design phase and it has been finalized, but thank you for your comments.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 1928 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:05 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC