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

  Advantages and disadvantages of working with multiple tables

Write down the advantages and disadvantages of working with multiple tables? Write an example of situation where multiple tables would be suitable in the application.

  Describe the different procedure performed in dbms

Describe the different procedure performed in DBMS for student database in which fields are student id, student name, student class, marks.

  Write a memorandum to sam jones

Write a memorandum to Sam Jones (CIO) and present your research findings. Your memorandum should be no longer than 500 words.

  Baxter aviation database

ER diagram for the Baxter Aviation database

  Craete the database to be fault tolerant

Explain the thought process of DBA as they craete the database to be fault tolerant. What policies would you suggest to get this goal?

  Write the sql ddl to create the database

The appropriate SQL commands, which should be copied from your source code in MySQL, and pasted into your submission file; and The resultant tables, which must be screenshots to show the change due to the execution of commands

  Print to screen the ''below average''

Print to screen the 'below average' if minimum unit_cost is 10 for the same product (use sh.costs table)

  Compute numbers of married men-single men from table

Compute the numbers of married men, single men, married women and single women. Print these numbers on a student summary report.

  When would creating an index reduce overall database perform

Indexing can affect the performance of a general-purpose database that has roughly equal numbers of fetches and changes. The decision to add an index can improve the performance of a system but can also degrade it.

  Database planner should spend a considerable amount of time

Provide what reports may be produced as a result of your database design.Based on the information you have researched, create a 2-3 page design document that includes a description of the database you would like to create as well as sample tables ..

  Translation from erd to the relational model

Complete (i.e., reverse engineering) ER diagram below such that 4 relation schemas above are exactly result of a translation from the ERD to the relational model.

  How the difference between an outer join and an inner join

Give a primary key for each relation. Are there any relations for which there is an alternate candidate key which you have not chosen as the primary key? Why or why not?

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