Click here to Skip to main content
16,014,294 members
Home / Discussions / C#
   

C#

 
GeneralRe: Database Design Question/Problem Pin
mfcuser6-Dec-06 10:08
mfcuser6-Dec-06 10:08 
AnswerRe: Database Design Question/Problem Pin
Guffa6-Dec-06 8:02
Guffa6-Dec-06 8:02 
AnswerRe: Database Design Question/Problem Pin
User 17164926-Dec-06 8:49
professionalUser 17164926-Dec-06 8:49 
GeneralRe: Database Design Question/Problem Pin
mfcuser6-Dec-06 9:03
mfcuser6-Dec-06 9:03 
GeneralRe: Database Design Question/Problem Pin
mfcuser6-Dec-06 9:44
mfcuser6-Dec-06 9:44 
GeneralRe: Database Design Question/Problem Pin
Colin Angus Mackay6-Dec-06 10:08
Colin Angus Mackay6-Dec-06 10:08 
GeneralRe: Database Design Question/Problem Pin
mfcuser6-Dec-06 10:26
mfcuser6-Dec-06 10:26 
GeneralRe: Database Design Question/Problem Pin
Colin Angus Mackay6-Dec-06 10:49
Colin Angus Mackay6-Dec-06 10:49 
mfcuser wrote:
If I drag customerid to order number, does that establish a relationship automatically?


It would pop up a dialog to confirm which columns from each table are used to form the relationship. However, a relationship with customerId on one end with Order number on the other would not work because they are not the same thing.

You must have the same keys on both ends of the relationship. One is the primary key on the parent table, and the other is a foreign key on the child table. You must have CustomerId (or something that represents customerId on both tables).

So the CustomerID of the Customer table is used to form a relationship with CustomerID on the Order table. There will be many rows in the Order table with the same CustomerID.


Upcoming Scottish Developers events:
* We are starting a series of events in Glasgow in 2007. Are you interested in a particular subject, or as a speaker?
* Developer Day Scotland: are you interested in speaking or attending?


My: Website | Blog | Photos

GeneralRe: Database Design Question/Problem Pin
mfcuser6-Dec-06 11:02
mfcuser6-Dec-06 11:02 
GeneralRe: Database Design Question/Problem Pin
Paul Conrad6-Dec-06 11:16
professionalPaul Conrad6-Dec-06 11:16 
GeneralRe: Database Design Question/Problem Pin
Colin Angus Mackay6-Dec-06 12:03
Colin Angus Mackay6-Dec-06 12:03 
QuestionDo developers post as other users....? Pin
ednrgc6-Dec-06 7:01
ednrgc6-Dec-06 7:01 
AnswerRe: Do developers post as other users....? Pin
Colin Angus Mackay6-Dec-06 7:35
Colin Angus Mackay6-Dec-06 7:35 
AnswerRe: Do developers post as other users....? Pin
Eric Dahlvang6-Dec-06 10:08
Eric Dahlvang6-Dec-06 10:08 
Questionstore file location Pin
Kim06186-Dec-06 5:52
Kim06186-Dec-06 5:52 
AnswerRe: store file location Pin
ednrgc6-Dec-06 6:52
ednrgc6-Dec-06 6:52 
AnswerRe: store file location Pin
Ravi Bhavnani6-Dec-06 7:33
professionalRavi Bhavnani6-Dec-06 7:33 
QuestionImage size Pin
netJP12L6-Dec-06 5:29
netJP12L6-Dec-06 5:29 
AnswerRe: Image size Pin
Robert Rohde6-Dec-06 7:33
Robert Rohde6-Dec-06 7:33 
GeneralRe: Image size Pin
netJP12L6-Dec-06 8:00
netJP12L6-Dec-06 8:00 
QuestionCustom TabPage Control Pin
t4ure4n6-Dec-06 5:16
t4ure4n6-Dec-06 5:16 
AnswerRe: Custom TabPage Control Pin
Not Active6-Dec-06 5:31
mentorNot Active6-Dec-06 5:31 
GeneralRe: Custom TabPage Control Pin
t4ure4n6-Dec-06 5:37
t4ure4n6-Dec-06 5:37 
GeneralRe: Custom TabPage Control Pin
ednrgc6-Dec-06 6:54
ednrgc6-Dec-06 6:54 
GeneralRe: Custom TabPage Control Pin
t4ure4n6-Dec-06 22:54
t4ure4n6-Dec-06 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.