You support a bookstore. They need an in-store kiosk customer support system so clients can easilt find what they desire. You create a Books table and an Authors table. Then you realize one book can have many authors and one author can write many books. This represents a many-to-many relationship. What do you do to enable searches for all books by one author and all authors by one book?

You support a bookstore.  They need an in-store kiosk customer support system so clients can easilt find what they desire. You create a Books table and an Authors table. Then you realize one book can have many authors and one author can write many books. This represents a many-to-many relationship. What do you do to enable searches for all books by one author and all authors by one book?


Answer – Create a junction table named BooksAuthors with a Foreign Key relationship to the Primary Key in the Books and Authors tables.
(A many-to-many relationship requires an in-between table that is itself one-to-many in both directions. By convention, this junction table assumes the names of the two tables referenced; in this case, Books and Authors.)


MS SQL Server 2008

Learn More Multiple Choice Question :