Using the relational database given in lab work no. 2, write the following queries in SQL: 1) Which course titles were given by at least two different instructors during the past? 2) Which departments have at least two instructors and at least ten students? 3) Which students took COMP117 from Cem Kalyoncu and COMP124 from Zafer Erenel? 4) Which students are advised by Soydan Redif and took at least one course from Ezgi Ulker? 5) Which students took multiple courses from Zafer Erenel but not a single course from Vesile Evrim? 6) For each department, find out the highest salaried instructor name and the highest total credited student name. You should also present the output of each query. ////the database of Lab 2 is on attached file)
Using the relational
1) Which course titles were given by at least two different instructors during the past?
2) Which departments have at least two instructors and at least ten students?
3) Which students took COMP117 from Cem Kalyoncu and COMP124 from Zafer Erenel?
4) Which students are advised by Soydan Redif and took at least one course from Ezgi Ulker?
5) Which students took multiple courses from Zafer Erenel but not a single course from Vesile Evrim?
6) For each department, find out the highest salaried instructor name and the highest total credited student name.
You should also present the output of each query.
////the database of Lab 2 is on attached file)
Step by step
Solved in 2 steps with 1 images