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

  Create class diagram

Draw a UML class diagram that models the aspects of job agencies that are described below.

  Modify oracle table data using the correct sql statements

modify oracle table data using the correct sql statements. you must create the statements in oracle by using the

  Describe a minimum of three heuristics to optimize queries

Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.

  Creating use case to describe typical sales process

Create use case to describe a typical sales process. Then make a sequence diagram for use case.

  describe capability of Good Eat Enterprise Resource Planning

This system will also provide administrators with the ability to create custom reports and filter data based upon a wide variety of information captured from each store.

  What is recovering database via rollforward

What is Recovering a database via rollforward? What is aim of transaction log? What is contained in transaction log?

  Write down a three to four 3-4 page paper in which you

a multinational tour operator agency has gained new business growth in the north american market through the use of

  Question 1 the systems analyst proposes the subsequent two

question 1. the systems analyst proposes the subsequent two relationships between the flight and pilot entities what

  Describe basic heuristics to optimize queries

Describe a minimum of three (3) heuristics to optimize Queries - provide the SQL code (and screen shots)

  Ithis hands-on assignment you will be expected to learn

in this hands-on assignment you will be expected to learn a. how to interactively query a database by using sql

  Describing the select statement

Data processing needs taking or receiving the data from a source and doing something with it. The same can be said about the transaction processing. When working along with a file, whether it be a fixed length.

  1 prepare directories on your hard drive place a small text

1 prepare directories on your hard drive. place a small text file in one directory. use oracle package utlfile to read

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