Individual Assignment Modif
Individual Assignment Modif
1. The Scenario:
A University contains many Faculties. The Faculties in turn are divided into several Schools. Each
School offers numerous programs and each program contains many courses. Lecturers can teach
many different courses and even the same course numerous times. Courses can also be taught by
many lecturers. A student is enrolled in only one program but a program can contain many
students. Students can be enrolled in many courses at the same time and the courses have many
students enrolled.
1: - Identify Entities
2: - Find relationships
3: -Draw rough ERD
4 - Fill in cardinality
5: - Define primary keys
6: - Draw key-based ERD
7: - Draw fully attributes ERD
2. What is a foreign key?
3. Does SQL support programming?
4. What is a primary key?
5. Write an SQL query to find names of employee start with 'A'?
6. Write an SQL query to get third maximum salary of an employee from a table named
employee table?