List the details of parts supplied by quality

Assignment Help Database Management System
Reference no: EM13309760

Question 1: Use the attached database to provide the relational algebra which would list the requested information (showing the result relation for EACH STEP).

a. Give the details of all suppliers in the Sault Ste Marie.
b. List all inventory items with a quantity less than 100 units
c. List all the inventory items stored in Sudbury
d. Give the supplier details (name and id) for those located in Sudbury.
e. List all the supplier names who supply all the red parts.
f. List the details of parts supplied by Quality
g. List the part number of all parts supplied and located in the same city.
h. List the supplier details for suppliers who do not supply blue parts.

Question 2: Consider the following schema of an online flight reservation agency.

Customer(cid, lastName, firstName, dob)

Flight(fid, airline, fromCity, toCity, stops, onTime)
Reservation(cid, fid, date)

Attribute dob is the customer's date of birth, stops is the number of stops (0-??) a flight requires, and onTime is a percentage (0-100) indicating how often a flight is on time. Keys are underlined. The set {lastName, firstName, dob} is also a key for Customer. However, the set {airline, fromCity, toCity, stops, onTime} is not a key for Flight since an airline may provide, say, di_erent flights with two stops from Bu_alo to Orlando, one stopping in Atlanta and one in New York, both of which are always on time. Attributes cid and fid in Reservation are foreign keys referencing homonymous attributes in Customer and Flight, respectively. Write Relational Algebra queries only that find

1. cid's of customers who reserved some flight to Boston and some flight to New York.
2. cid's of customers who reserved some flight to Miami or some flight to Houston, but not both.
3. cid's of customers who never reserved AirTran flights or flights to Houston.
4. cid's of customers who reserved every flight that is on time at least 85% of the time.
5. cid's of customers who reserved every flight that the customer with cid=5 reserved.
6. cid's of customers who reserved at least three distinct JetBlue flights to Miami.
7. Pairs of cid's of distinct customers who reserved the same flight and the first in the pair reserved before the second.
8. Pairs of cid's of distinct customers who reserved all the same flights. If (c1, c2) is returned, do not return (c2, c1).

 

946_Houston.png

556_Houston 1.png

650_Houston 2.png

Reference no: EM13309760

Questions Cloud

Find the cut-off frequency for this metal : Suppose the work function for a particular metal is 5.09 eV. Find the cut-off frequency for this metal
Create a structure called atom-predefined pattern : Create a structure called "atom", and create an instance of that structure based on a real atom. Give it any physical property you think is important to an atom, and set the values to something realistic.
Methanol reacts with oxygen to produce carbon dioxid : Methanol (CH3OH) reacts with oxygen to produce carbon dioxide and water. How many grams of oxygen will be required to react completely with 200 grams of CH3OH? What mass of water will be produced during the reaction?
The volumetric flask and then diluted to 50.0ml total volume : If 10.0mL of a 3.00x10-1 M Fe(NO3)3 in 0.500M HNO3 solution is placed in a volumetric flask and then diluted to 50.0mL total volume, what will be the concentration of Fe+3
List the details of parts supplied by quality : Attribute dob is the customer's date of birth, stops is the number of stops (0-??) a flight requires, and onTime is a percentage (0-100) indicating how often a flight is on time. Keys are underlined.
What is fraudulent misrepresentation : What is an unconscionable contract, exculpatory clause, and Blue Sky laws and give explanations and examples of each? What is "Fraudulent Misrepresentation" and when and how does it occur; give real world examples. Provide the definition and examples..
Explain what is the mass in grams of the sample : A sample of iron absorbs 67.5 J of heat, upon which the temperature of the sample increases from 21.5 celcius to 28.5 celcius. If the specific heat of iron is 0.450 J/g-K, what is the mass (in grams) of the sample
Find the temperature of the stars surface : Suppose a spaceship runs out of fuel near a star. The crew erects a square, white sail 7.06 km on a side, Find the temperature of the star's surface
Discuss how systolic blood pressure : At the same power output, discuss how systolic blood pressure will change from rest to aerobic exercise and how will it change from rest during resistance exercise?

Reviews

Write a Review

Database Management System Questions & Answers

  Explain data for each candidate of eight constituencies

supplies % of votes each candidate is likely to receive, based on popularity rating. Actual number of votes received is that percentage of General votes. You should enter data for each candidate in each of the eight constituencies.

  Find all non-trivial dependencies

Compute the closure sets of R, find all non-trivial dependencies and what are the candidate keys of R?

  Find average number of books borrowed per member

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

  Ensure the security of organizations distributed database

How can you make your database more hacker proof? How do you ensure the security of an organizations distributed database?

  Explaining cardinality of a relationship

What is meant by cardinality of a relationship? Your answer requires to be thorough and specific. Be sure to include the two types of cardinality

  Draw object-oriented model for private airport database

Draw an object-oriented model for a small private airport database that is used to keep track of airplanes, their owners, airport employees, and pilots.

  Explaining uses for views

Views are integral part of virtual private databases, yet views are utilized for many other reasons. Find out many other uses for views.

  Determine the functional dependencies

Using your knowledge of the college environment, determine the functional dependencies that exist in the following?

  Criteria selecting a life-cycle model for the project

What criteria would you use in selecting a life-cycle model for the project?

  Prepare a set of non-functional requirements

Need a system that networks its 3 campuses in the US and one campus in Singapore. Transaction data for all campuses should be available to all locations. In addition, students should be able to use the Internet to view classes, enroll, register, and ..

  Describe basic heuristics to optimize queries

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

  Create an erd and relatioal schema

Create an ERD and relatioal schema in third normal form based upon the following business rules. (Hint: ensure that all attributes are FULLY DETERMINED by the primary key.) Don't forget to place your normalization arrows on your relational schema.

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