answersLogoWhite

0


Best Answer

Assume a bookshop has database with the following schema of six relations: Authors (au_id, au_lname, au_fname, phone, address) Publishers (pub_id, pub_name, city, state, country) Sales (stor_id, ord_num, qty, title_id)Stores (stor_id, stor_name, stor_address, city, state, zip)Titleauthor (au_id, title_id, royaltyper, au_ord) Titles (title_id, title, type, pub_id, price, pubdate) Write the following queries in relational algebra: i. List the authors first and last names for the book titled 'Life Without Fear' ii. List the titles of the books sold at Barnum's. (stor_name) iii. Give the last names (au_lname) and au_ids of the authors whose books have sold in the store named Barnum's. Assign an alias to your answer. iv. Using your alias from the previous problem, give the last names and au_ids of the authors whose books have not sold in the store named Barnum's v. List the titles of books, which have not sold any copies at any store (no books sold at all.) vi. List the titles of the books, which have only sold at Barnum's. (Do not list the books, which have not sold anywhere.) vii. List the titles of the books, which have sold at both Barnum's and Bookbeat. (Two stor_names) viii. List the titles and stor_names for each book when the book has sold and the title only (with null for the stor_name) if the book has not sold. (Use an outer join.) ix. List the stor_ids of the stores which have sold all books published by New Moon Books (pub_name) List the titles of the books, which have sold at all stores

User Avatar

Wiki User

βˆ™ 15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Assume a bookshop has database with the following schema of six relations?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a desktop database?

I assume it is a database used on a local desktop computer.


Where can you buy a French-English dictionary?

I assume any medium-sized or large bookshop will offer a variety of French-English dictionaries.


Is relationship a function?

I assume you mean a "relation". All functions are relations, but not all relations are functions.


When do you say that a given function is velation?

I assume you mean "relation". By definition, all functions are relations; but only some relations are functions.


Which of the following types of bonds can be dissociated by water?

I assume that one of the " following ' is ionic bond.


What is the fingerprint database called?

I would assume it was a relational database.. I also assume you mean the fingerprint database that is used by the police forces. as far as i am aware it is a relational database. I think because you could query either a name or a fingerprint reading and then get the information relating to it..Example: If you were looking for the name to a set of fingerprints, you would enter the finger print into your query, and then you might get a name if it is in the database, and if you were looking for the fingerprints to a guy, you would enter a name and you might get the fingerprints for him if you have the right name and it is contained within the database.


Is it considered adultery if my spouse and I have lived apart for over a year?

I assume you are speaking of extramarital sex. Adultery occurs when a married person has sexual relations with a person who is not their spouse. You are married until you obtain a divorce.I assume you are speaking of extramarital sex. Adultery occurs when a married person has sexual relations with a person who is not their spouse. You are married until you obtain a divorce.I assume you are speaking of extramarital sex. Adultery occurs when a married person has sexual relations with a person who is not their spouse. You are married until you obtain a divorce.I assume you are speaking of extramarital sex. Adultery occurs when a married person has sexual relations with a person who is not their spouse. You are married until you obtain a divorce.


How do you create a supermarket database where a person can check on the price of the available products?

Assume that you are creating a database table to hold the information of the Items in the Super market. Write down the data type suitable to hold the following information: a) Item Number b) Item Description c) Unit Price d) Stock Balance e) Reorder Level f) Store Location


What does you hold these truths to be self-evident mean?

you [should] assume the following is true


Which of the following gases do plants ues in photosynthesis?

I assume you are looking for carbon dioxide.


Study the following food chaon rabbits snakes hawks from this chain you can correctly assume that each population?

Study the following food chain: grass → snakes → rabbits → hawks. From this chain, you can correctly assume that each population


What shape has 4 size?

I assume you mean sides. All the following have 4 sides:SquareRectangleRhombusHexagonQuadralateral