Skip to content

2989. Class Performance

1
2
3
4
5
6
7
WITH
  TotalScores AS (
    SELECT assignment1 + assignment2 + assignment3 AS score
    FROM Scores
  )
SELECT MAX(score) - MIN(score) AS difference_in_score
FROM TotalScores;