Tugas SQL
Tugas SQL
schema
05/31/2025 SQL (©Silberschatz, Korth and Sudarshan, modified by TW) 3
Try Writing Some More Queries
For the following queries, make sure there are no
duplicates in the result.
4. Find the names of all instructors who have never
taught any courses at Campus Center building.
5. Find the names of all instructors with their new
salaries (named new_salary). New salary will be
1.5% higher than the old one for instructors of
Comp. Sci. department, and 1.25% for all other
instructors .
schema
05/31/2025 SQL (©Silberschatz, Korth and Sudarshan, modified by TW) 4
How About Some More Queries?
6. Find all instructors earning the highest salary
(there may be more than one with the same
salary)
7. Find the enrollment of each section that was
offered in Autumn 2009.
8. Find all departments with more than 1000
students enrollments, together with the
number of students for each of them. The list
should be ordered by dept_name
schema
05/31/2025 SQL (©Silberschatz, Korth and Sudarshan, modified by TW) 5