If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Need Help{NooB QN}

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-09, 05:19
whousedmy whousedmy is offline
Registered User
 
Join Date: May 2009
Posts: 2
Question Need Help{NooB QN}

Hi to ALL! ,

I'm new here and to DB design, doing some self-study on Database. I've some design question to ask.

Example: if I’m designing program ASP.net program with search function and a DB which can store many Products (PC) and which Product have many Drivers.

How to do i design the DB? I understand that i need to use a linking table in-between but somehow I don't get it.


Following is my design which i think is wrong

Product
PID - PK
PName
and etc

PDLink
PID - FK
DriID - FK

Driver
DriID - PK
DriDesc
DriName
DriType
and etc


Thanks alot in adv
Reply With Quote
  #2 (permalink)  
Old 05-07-09, 07:44
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
your design is fine
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-07-09, 21:04
whousedmy whousedmy is offline
Registered User
 
Join Date: May 2009
Posts: 2
Quote:
Originally Posted by r937
your design is fine
So how do I write my program? cause if one PC can have many drivers and one driver is share by many PC? This is the part that i don't understand. Thxs for your reply anyway.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On