Posted: April 24th, 2025

SQL

5)
Rank order all students by total credit (DESC)

6)
Create a view tot_credits_dept
(columns: year, dept_name,
num_credits)
with the total
number of credits taken
by all students in each year for courses offered by each department

7)
Compute average
number of credits over three
preceding years
per department using the view you created

8)
Compute maximum
number of credits over for the window
of 2 years before and 2 years after the
current year per department

9)
Using the view you just created, get the average
total credits by each department over all prior years.

10)
See the last slide of lecture 10 (DB Connection with Python)

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00