# hw1 - CSE671 Introduction to DB Systems II Homework 1 Due...

This preview shows pages 1–2. Sign up to view the full content.

1 CSE671 - Introduction to DB Systems II Homework 1 Due: in class, Jan. 16, 2008 Problem 1 : SQL and Relational Algebra (30 points) Consider the following relations containing airline flight information: Flights (flightno, from, to, distance, departure_time, arrival_time) Aircraft(aid, aname, crusingrange) Certified(eid, aid) Employees(eid, ename, salary) Every pilot is an employee who is certified for some aircraft. Otherwise, he/she is not a pilot but just an employee. Only pilots are certified to fly. Write the following queries in BOTH SQL and relational algebra. a) Find the flightno of Flights from Chicago to Boston b) Find names of pilots who can operate planes with a range greater than 5,000 miles and earn salary more than 100k c) Find the names of employees who are not pilots Problem 2 : Data Representation (35 points) A patient record consists of the following fixed-length fields: the patient’s date of birth, social-security number, and patient ID, each 10 bytes long. It also has the following

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.
• Winter '06
• HakanFerhatosmanoglu
• access time, Seek time, Rotational delay, average rotational latency, DB Systems II, airline flight information

{[ snackBarMessage ]}

### Page1 / 2

hw1 - CSE671 Introduction to DB Systems II Homework 1 Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online