I don't use databases.
Where's the SQL?
Tons of corner cases
The same happens in ETL, Data Exploration, Data Vis, etc...
SELECT student_id, SUM(assignment * weight) / 45
FROM grades;
SELECT student_id, SUM(assignment * weight) / 45
FROM grades;
Now ignore Bob's grade for assignment 2.
Student | A1 | A2 | A3 |
---|---|---|---|
Alice | 15 | 15 | 12 |
Bob | 14 | - | 15 |
Carol | 13 | 15 | 14 |
Dave | 13 | 15 | 11 |
Student | A1 | A2 | A3 | Average |
---|---|---|---|---|
Alice | 15 | 15 | 12 | =AVG(B2:B4) |
Bob | 14 | - | 15 | =AVG(C2:C4) |
Carol | 13 | 15 | 14 | =AVG(D2:D4) |
Dave | 13 | 15 | 11 | =AVG(E2:E4) |
Student | A1 | A2 | A3 | Average |
---|---|---|---|---|
Alice | 15 | 15 | 12 | =AVG(B2:B4) |
Bob | 14 | - | 15 | =AVG(C2, C4) |
Carol | 13 | 15 | 14 | =AVG(D2:D4) |
Dave | 13 | 15 | 11 | =AVG(E2:E4) |
Making spreadsheets lot more like...
We need to make the same thing easier for SQL!
See how at the demo session!