forked from Goncalo-Nobre/Amazing-Team-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFinal_SQL.sql
More file actions
44 lines (32 loc) · 922 Bytes
/
Final_SQL.sql
File metadata and controls
44 lines (32 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SELECT school, COUNT(*)
FROM comments
GROUP BY school
ORDER BY COUNT(*) DESC;
SELECT school, COUNT(*)
FROM courses
GROUP BY school
ORDER BY COUNT(*) DESC;
SELECT school, COUNT(*)
FROM location
GROUP BY school
ORDER BY COUNT(*) DESC;
SELECT school, AVG(overallScore) AS ovscore, AVG(overall), AVG(curriculum) AS cv, AVG(jobSupport) AS js
FROM comments
GROUP BY school
ORDER BY js DESC;
SELECT keyword, overallScore, c.school
FROM badges AS b
INNER JOIN schools as s
ON s.school = b.school
INNER JOIN comments AS c
ON s.school = c.school
GROUP BY c.school;
SELECT school, graduatingYear, overallScore, overall, curriculum, jobSupport
FROM comments
GROUP BY graduatingYear, school
ORDER BY graduatingYear DESC;
SELECT school, graduatingYear, AVG(overallScore), AVG(overall), AVG(curriculum), AVG(jobSupport)
FROM comments
WHERE school = 'ironhack'
GROUP BY graduatingYear, school
ORDER BY graduatingYear DESC;