0

This may be a simple a question but I just wanted to clarify, at work I have a table containing a list of titles and I also have a list of authors in two different tables.

What would be best way to connect them? I have a connector table with the IDs of the Authors and ID of the titles so you can left join them, is there a better way to do this? i looked at having an extra column in the title table which would allow the author ID but this would be problematic for multiple titles to a single author.

Does anyone have any suggestions of a better way of doing this ( instead of a connector table)?

any help would be greatly appreciated.

Thanks

James

asked Oct 30, 2012 at 18:27

1 Answer 1

1

A connector table is the standard way to solve this sort of problem.

As you say in your question, if you have a TitleID column in the Authors table it restricts you to one Title per Author, unless you add a Title2ID, Title3ID, etc columns, which for someone like Stephen King might mean quite a few columns.....

Also, by having the connector table you can deal with cases where a Title has more than one Author.

answered Oct 31, 2012 at 13:07
1
  • thank you , that is what I currently have in place just wanted to be sure there was not a better method before went on to develop the system more. thanks Commented Nov 1, 2012 at 17:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.