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 > Shop ER Diagram

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Oct 2012
Posts: 2
Shop ER Diagram

Hi All,
I have to create a database in which a customer can provide multiple shipping addresses,how to assign a customer entity to multiple adddresse??
a.Can I take CustmerID as a FK in Address and join them.
b.If both table have M:N relationship I can take a 3rd table and give PK of both the table ie composite keys I can take.

Thanks
Reply With Quote
  #2 (permalink)  
Old
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 20,000
a. yes

b. yes
__________________
rudy.ca | @rudydotca
Buy my SitePoint book: Simply SQL
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Jul 2012
Posts: 39
Here is a Data Model on my Database Answers Web Site that shows what a Customer with multiple Addresses looks like :-
Customer Addresses Data Model

HTH

Barry Williams
London,England
Reply With Quote
Reply

Tags
database concepts

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