Question: Write the following SQL queries: 1 . Print the names of professors who work in departments that have fewer than 5 0 PhD students. 2
Write the following SQL queries:
Print the names of professors who work in departments that have fewer than
PhD students.
Print the names of students with the lowest gpa.
Print the course names, course numbers and section numbers of all classes with
less than six students enrolled in them.
Print the names and sids of the students enrolled in the most classes.
Print the names of departments that have one or more majors who are under
years old.
Print the names and majors of students who are taking one of the College
Geometry courses. Hint: You'll need to use the "like" predicate and the string
matching character in your query.
For those departments that have no majors taking a College Geometry course,
print the department name and the number of PhD students in the department.
Print the names of students who are taking both a Computer Sciences course
and a Mathematics course.
Print the age difference between the oldest and youngest Computer Sciences
majors
For each department that has one or more majors with a GPA under print
the name of the department and the average GPA of its majors.
Print the ids, names, and GPAs of the students who are currently taking all of the
Civil Engineering courses.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
