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

  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