You are given a database with schema BOOK (isbn, title, type, year, publisher, price) BOOKSELLER (name,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are given a database with schema BOOK (isbn, title, type, year, publisher, price) BOOKSELLER (name, address, country, num-stores, CEO, contact-phone) SALES (isbn, seller, num-sales) where isbn is the primary key in BOOK; type is a value like 'biography', 'business', 'fiction', 'poetry", 'essay', etc.; publisher is a foreign key to table PUBLISHER (not shown). In BOOKSELLER, name is the primary key. Finally, in SALES isbn is a foreign key to BOOK and seller is a foreign key to BOOKSELLER; the key of the table is (isbn, seller) (meaning: a book can be sold by several booksellers, and a bookseller sells several books), and num-sales is the number of copies of a certain book sold by a given seller. 1. Write the following questions in Relational Algebra: (a) List the titles of books published in 2010 by a bookseller from France. (b) List the names of booksellers that sell a poetry or an essay book (these are types of book). (c) List the names of booksellers that sell a poetry and an essay book (these are types of book). (d) List the titles of books who have never been sold by 'Barnes and Noble' (bookseller name). (e) (GRADUATE STUDENTS ONLY) List the names of booksellers who only sell biographies (and no other type of book). You are given a database with schema BOOK (isbn, title, type, year, publisher, price) BOOKSELLER (name, address, country, num-stores, CEO, contact-phone) SALES (isbn, seller, num-sales) where isbn is the primary key in BOOK; type is a value like 'biography', 'business', 'fiction', 'poetry", 'essay', etc.; publisher is a foreign key to table PUBLISHER (not shown). In BOOKSELLER, name is the primary key. Finally, in SALES isbn is a foreign key to BOOK and seller is a foreign key to BOOKSELLER; the key of the table is (isbn, seller) (meaning: a book can be sold by several booksellers, and a bookseller sells several books), and num-sales is the number of copies of a certain book sold by a given seller. 1. Write the following questions in Relational Algebra: (a) List the titles of books published in 2010 by a bookseller from France. (b) List the names of booksellers that sell a poetry or an essay book (these are types of book). (c) List the names of booksellers that sell a poetry and an essay book (these are types of book). (d) List the titles of books who have never been sold by 'Barnes and Noble' (bookseller name). (e) (GRADUATE STUDENTS ONLY) List the names of booksellers who only sell biographies (and no other type of book).
Expert Answer:
Answer rating: 100% (QA)
Here is the relational algebra representation of the questions a List the titles of boo... View the full answer
Related Book For
Introduction to Data Mining
ISBN: 978-0321321367
1st edition
Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar
Posted Date:
Students also viewed these programming questions
-
There is a European put option on a stock that expires in two months. The stock price is $ 8 2 and the standard deviation of the stock returns is 6 7 percent. The option has a strike price of $ 9 0...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Match the cooking or preparation method to the relevant equipment. EQUIPMENT METHOD Food processor with a grater attachment or box grater Baking Range, pot or deep fryer, spatula or tongs Boiling...
-
Show graphically how the equilibrium-relative commodity price of commodity Y with trade can be derived from Figure 4.1. Figure 4.1 Panel A Px/Py Panel B Px/Py Panel C Nation 1's Market for Commodity...
-
A beam ABCD with a vertical arm CE is supported as a simple beam at A and D (see figure). A cable passes over a small pulley that is attached to the arm at E. One end of the cable is attached to the...
-
'The biggest confidence tricl, of all time has nothing to do with social-security fraud, insider dealing or any of the exotic forms of computer-based racl,eteering beloved of magazine and television...
-
The financial statements of Procter & Gamble (P&G) can be accessed at the books website. Instructions Refer to P&Gs financial statements and the accompanying notes to answer the following questions....
-
In the following data, a is the average number of hours the student spent working on math each week and y is the final grade in a math class. hours/week x Grade y 5 45 5 46 8 69.2 8 56.2 9 68.6 9...
-
3. In how many ways the effective capacity of a resource (or resource pool) can be increased? Please very briefly explain what each of those ways are
-
Photosynthesis is the process by which plants convert sunlight, water, and carbon dioxide into glucose and oxygen. However, under certain environmental conditions, some plants can increase their rate...
-
Find the domain of the function. 4 g(x) = x-6x
-
What are the key challenges businesses face in managing cross-functional teams, and how can they overcome these challenges to foster collaboration and innovation?
-
What are the key factors driving the rise of the gig economy, and how can businesses adapt their workforce strategies to leverage this trend effectively?
-
Consider the next 10 items to be processed in a single machine (first item already arrived).a) (50p) Use event-scheduling / time-advance algorithm to build a simulation table. Take thestopping event...
-
How does a balanced scorecard contribute to improved operations, if at all?
-
The packaging division of a company having considered several alternative package designs for the company's new product has finally brought down their choices to two designs of which only one has to...
-
Complex Corporation started operations on 1/1/15. At 12/31/15, the company owned the following leases in Canada: Compute DD&A for Canada, assuming the following: a. No exclusions from the...
-
Data for Porch Oil Company is as follows for all U.S. properties: a. Apply the full cost ceiling test and record any entries necessary, assuming that all possible costs are excluded from...
-
Alan Oil Corporation, located in Denver, Colorado, has been operating for three years. Alan uses full cost accounting and excludes all possible costs from the amortization base. The following account...
Study smarter with the SolutionInn App