subject

Consider the following schema: suppliers (sid: integer, sname: string, street: string, city: string, zip: string) parts (pid: integer, pname: string, color: string) catalog (sid: integer, pid: integer, cost: real)the primary key attributes are underlined, and the domain of each attribute is listed after the attribute name. thus, sid is the primary key for suppliers, pid is the primary key for parts, and sid and pid together form the primary key for catalog. attribute sid in catalog is a foreign key that refers to the primary key sid of suppliers and pid in catalog is a foreign key that refers to the primary key pid of parts. the catalog relation lists the prices charged for parts by suppliers. state what the following query computes.0. πcity (πpid (σ color = 'green' (parts) ) * σ cost> 50 (catalog) * πsid, city (suppliers) )write the following queries in relational algebra.1. find the names of parts for which there is some supplier2. find the names of parts supplied by suppliers who are at 1 central ave.3. find the names of suppliers who supply some red part.4. find the sids of suppliers who supply some red or green part.5. find the sid of suppliers who supply some red part or whose address is '221 packer street'.6. find the sids of suppliers who supply some red part and some green part.7. find the pids of parts that are red or are supplied by a supplier who is at the city of newark.8. find the pids of parts supplied by a supplier who is at the city of newark and by a supplier who is at the city of trenton.9. find the pids of parts supplied by every supplier.10. find the pids of parts supplied by every supplier who supplies at least one part.11. find the sids of suppliers who supply at least two different parts (you are not allowed to use a grouping/aggregation operation for this query).12. find the sids of suppliers who supply at least two different parts (you have to use a grouping/aggregation operation for this query).13. for every part, find its pid, its pname and the number of suppliers who sell it.14. list the pid, pname and average cost of all parts.15. find the average cost of red parts.16. find the average cost of parts supplied by suppliers named 'yosemite sham'.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:50
What are the advantages of google cloud ?
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors.java.
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
You know the right answer?
Consider the following schema: suppliers (sid: integer, sname: string, street: string, city: str...
Questions
question
History, 31.01.2021 04:00
question
French, 31.01.2021 04:00
question
World Languages, 31.01.2021 04:00
Questions on the website: 13722367