Results 1 to 3 of 3

Thread: Shop ER Diagram

  1. #1
    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

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    a. yes

    b. yes
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •