Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

BOOK(isbn, title, num-pages, publisher, year, genre, price, aut-id). The first attribute is the primary key; the last one is a foreign key to AUTHOR. CUSTOMER(customer-id,

BOOK(isbn, title, num-pages, publisher, year, genre, price, aut-id). The first attribute is the primary key; the last one is a foreign key to AUTHOR. CUSTOMER(customer-id, name, address, city, state, zip, age). The first attribute is the pri- mary key. SALES(isbn, custid, num-copies, day, month, year, total). The first attribute is a foreign key to BOOK and the second a foreign key to CUSTOMER. The key of this table is the two foreign keys together. AUTHOR(author-id, name, dob, nationality, address, city, state, zip). The first attribute is the primary key.

DO NOT GIVE ANSWER THAT HAS SQL, ONLY RELATIONAL ALGEBRA

7. List the name and address of authors who have written at least two books.

8. List the name and address of authors who have written only sci-fi books (i.e. all the books they have written are sci-fi).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Compare Jung and Adlers theories to Freuds psychoanalysis.

Answered: 1 week ago

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago