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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online