Results 1 to 3 of 3

Thread: [RESOLVED] Database design question

  1. #1

    Thread Starter
    Addicted Member MoE70's Avatar
    Join Date
    May 2006
    Posts
    185

    Resolved [RESOLVED] Database design question

    why do we make tables like 'Book_to_Author' instead of just adding authorID to the author field in the Book table?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Database design question

    You make tables like that when the join is many-to-many.

    In the case of a "'Book_to_Author" table, that would be because an Author can write many books, and a single book can be written by more than one person.

  3. #3

    Thread Starter
    Addicted Member MoE70's Avatar
    Join Date
    May 2006
    Posts
    185

    Re: Database design question

    Ah that's it I remember now Thanks a lot!

Posting Permissions

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



Click Here to Expand Forum to Full Width