By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
region_id | region_name | students_amount |
---|---|---|
1 | Region 1 | 0 |
2 | Region 2 | 0 |
3 | Region 3 | 0 |
student_id | student_name | region_id |
---|---|---|
1 | Student 1 | 1 |
2 | Student 2 | 2 |
3 | Student 3 | 1 |
4 | Student 4 | 1 |
region_id | region_name | students_amount |
---|---|---|
1 | Region 1 | 3 |
2 | Region 2 | 1 |
3 | Region 3 | 0 |
student_id | student_name | region_id |
---|---|---|
1 | Student 1 | 1 |
2 | Student 2 | 2 |
3 | Student 3 | 1 |
4 | Student 4 | 1 |
5 | Student 5 | 1 |
6 | Student 6 | 2 |
7 | Student 7 | 3 |
8 | Student 8 | 3 |
region_id | region_name | students_amount |
---|---|---|
1 | Region 1 | 4 |
2 | Region 2 | 2 |
3 | Region 3 | 2 |