Question

In: Computer Science

What is the foreign key that creates a relationship between the Book and Publisher entities?

What is the foreign key that creates a relationship between the Book and Publisher entities?

Solutions

Expert Solution

What is the foreign key that creates a relationship between the Book and Publisher entities:

Answer: Publisher

Description:

• Foreign key - FK: Foreign key is an attribute or a column in a table which references to the primary key or column of another table. Primary key or attribute and foreign key are must of the same data type.

• Consider the following two entities:

Book

Publisher

• Book table is having attributes like ISBN_NO [PK], title, author, publisher [FK] and Publisher table is having attributes like Publisher_ID [PK], name, country.

Book (ISBN_NO[PK], title, author, publisher [FK])

Publisher (Publisher_ID [PK], name, country)

• Foreign key is used to relate two tables in the sane database. Here, each book of the Book table is related to a publisher in Publisher table through the “publisher” foreign key in a Book table.

• Here, Foreign key is publisher which contains appropriate corresponding Publisher_ID of the Publisher table.

• Consider the following diagram showing the relationship between the Book and Publisher entities. Arrows in the figure shows the relation or link between the foreign key of one table and primary key of another table.

"publisher" is the foreign key that creates a relationship between the Book and Publisher entities.


Related Solutions

Which of the following best illustrates the relationship between entities and attributes?
Which of the following best illustrates the relationship between entities and attributes?  A. The entity CUSTOMER with the attribute ADDRESS   B. The entity PRODUCT with the attribute CUSTOMER   C. The entity CUSTOMER with the attribute PRODUCT   D. The entity ADDRESS with the attribute CUSTOMER   E. The entity PRODUCT with the attribute PURCHASE
What is the name of the revolutionary key exchange that creates an encryption key, but only...
What is the name of the revolutionary key exchange that creates an encryption key, but only transmits enough information across the wire to encrypt and decrypt messages, without ever sharing the key itself across the wire? Group of answer choices Alice and Bob key exchange Sarbanes-Oxley key exchange Diffle-Hellman key exchange Whitfield-Martin key exchange
A book publisher is planning to produce a book in three different bindings: paperback, book club...
A book publisher is planning to produce a book in three different bindings: paperback, book club and library. A paperback takes 2 minutes to sew, 4 minutes to glue, and sells for a profit of 25 cents. A book club edition takes 2 minutes to sew, 6 minutes to glue, and sells for a profit of 40 cents. A library edition takes 3 minutes to sew, 10 minutes to glue, and sells for a profit of 60 cents. The sewing...
what is super key,  candidate key, and primary key, and foreign key in terms of database? and...
what is super key,  candidate key, and primary key, and foreign key in terms of database? and plz provide some examples, thanks.
What are the key differences between relationship selling and traditional methods of selling? What types of...
What are the key differences between relationship selling and traditional methods of selling? What types of products or services do you think would be conducive to relationship selling? Why?
C#: A book publisher has limited the cost of every book they publish to no more...
C#: A book publisher has limited the cost of every book they publish to no more than 10 cents per page. Create a BookException class with a constructor that requires three (3) arguments for each book: a string title, a double price and an int number of pages. Create an error message that is passed to the Exception class constructor for the Message property when a book does not meet the price-to-pages ratio. The error message might be:                                                                      For...
Describe the differences in reporting between governmental entities and not-for-profit entities. For example, what are the...
Describe the differences in reporting between governmental entities and not-for-profit entities. For example, what are the financial statements for each entity? What measurement focus and basis of accounting do each use?
A comic book publisher must meet the following demand for a popular comic book on time...
A comic book publisher must meet the following demand for a popular comic book on time or risk long term loss of revenue as schools change to another comic: quarter 1-60,000; quarter 2-40,000; quarter 3-50,000; quarter 4-15,000. The comic can be printed for $25 with regular-time labor and for $35 with overtime labor. At most 30,000 comics can be printed with regular-time labor in a single quarter. The publisher currently has 5,000 comics on hand. It costs $4 per quarter...
By considering a relationship with (0, N) - (0, N) cardinalities between two entities, discuss the...
By considering a relationship with (0, N) - (0, N) cardinalities between two entities, discuss the following: The rule used to create relational database tables from a conceptual model. How should the relationship be implemented? Why does it need to be implemented that way? Does the rule differ if either or both minimum cardinalities are changed to 1?
What are some key components of the New Deal that affected the relationship between workers and their employers?
What are some key components of the New Deal that affected the relationship between workers and their employers?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT