Find pairs of sids such that the supplier with the ?rst sid

Assignment Help Database Management System
Reference no: EM13509216

Consider the following schema:

 Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color: string) Catalog(sid: integer, pid: integer, cost: real) 

The key fields are underlined, and the domain of each ?eld is listed after the ?eld name. Therefore sid is the key for Suppliers, pid is the key for Parts, and sid and pid together form the key for Catalog. The Catalog relation lists the prices charged for parts by Suppliers. Write the following queries in relational algebra, tuple relational calculus, and domain relational calculus: 

1. Find the names of suppliers who supply some red part. 

2. Find the sids of suppliers who supply some red or green part.

3. Find the sids of suppliers who supply some red part or are at 221 Packer Street. 

4. Find the sids of suppliers who supply some red part and some green part. 

5. Find the sids of suppliers who supply every part. 

6. Find the sids of suppliers who supply every red part. 

7. Find the sids of suppliers who supply every red or green part. 

8. Find the sids of suppliers who supply every red part or supply every green part. 

9. Find pairs of sids such that the supplier with the ?rst sid charges more for some part than the supplier with the second sid. 

10. Find the pids of parts supplied by at least two di?erent suppliers. 

11. Find the pids of the most expensive parts supplied by suppliers named Yosemite Sham. 

12. Find the pids of parts supplied by every supplier at less than $200. (If any supplier either does not supply the part or charges more than $200 for it, the part is not selected.)

 

Reference no: EM13509216

Questions Cloud

What is the internal rate of return on the investment : Constance is contemplating an average-risk investment costing $15 million that promises an annual after-tax cash flow of $2 million in perpetuity.
What the company assets totaled : During its first year of operations, Maria Rose set up Roseland Inc. and invested $25,000 in the corporation. The company earned $68,000 of revenues and incurred $32,000 of expenses.
What is the average angular velocity of his arms and legs : If a person of mass M simply moved forward with speed V , his kinetic energy would be (1/2 MV^2) . However, in addition to possessing a forward motion, What is the average angular velocity of his arms and legs
Classify each of the costs as a capital expenditure : Classify each of the costs as a capital expenditure or a revenue expenditure. For those costs identified as capital expenditures, classify each as an additional or replacement component.
Find pairs of sids such that the supplier with the ?rst sid : Find pairs of sids such that the supplier with the ?rst sid charges more for some part than the supplier with the second sid.
At what angle is the sun elevated above the horizon : A 600-m tall tower casts a 600-m long shadow over a level ground. At what angle is the sun elevated above the horizon
Determine the division of the net income : Plan (e), except that Driscoe is also to be allowed a bonus equal to 20% of the amount by which net income exceeds the salary allowances.
How much gravitational potential energy has it lost : An object of mass M = 3.5 kg slides from rest a distance d = 6 m down a frictionless inclined plane where it encounters a spring. When the block just touches the spring, how much gravitational potential energy has it lost
What are the specific journal entries : private company where the group contributing the money has only 3 x $2 shares. ie: what are the specific journal entries, particularly if that amount is not shown in the "bank" account

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd