By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
8.0.30 |
Records: 10 Duplicates: 0 Warnings: 0
Records: 5 Duplicates: 0 Warnings: 0
Records: 10 Duplicates: 0 Warnings: 0
student_id | department_id |
---|---|
1 | 1 |
2 | 1 |
3 | 2 |
4 | 2 |
5 | 3 |
6 | 3 |
7 | 4 |
8 | 4 |
9 | 5 |
10 | 5 |
department_id | department_name |
---|---|
1 | Informatics |
2 | Biology |
3 | Physics |
4 | Geography |
5 | Chemistry |
student_id | grade |
---|---|
1 | 6 |
2 | 6 |
3 | 4 |
4 | 4 |
5 | 3 |
6 | 3 |
7 | 2 |
8 | 2 |
9 | 6 |
10 | 5 |
department_name | grade | cnt |
---|---|---|
Informatics | 6 | 2 |