Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Department of EECS North South University Quiz 01: CSE 311/ETE 335 Total Marks: 15 Time: 20 min ID:

Name:

1. Write the differences among super key, candidate key and the primary key
2. Consider the following relations: Flights (flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time) Aircraft(aid: integer, aname: string, cruisingrange: integer) Certified (eid: integer, aid: integer) Employees (eid: integer, ename: string, salary: integer) The key fields are underlined. Write the following queries in relational algebra: a) Find the names of pilots certified for some Boeing aircraft. b) Find the eids of employees who make the highest salary. c) Find the names of pilots who can operate planes with a range greater than 3,000 miles but are not certified on any Boeing aircraft. d) Find the total amount paid to employees as salaries.

3
12

You might also like