By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 3
| id_class | total_student |
|---|---|
| 2 | 1 |
| 1 | 2 |
SELECT 2
| min | id_class | total_student |
|---|---|---|
| 1 | 1 | 2 |
| 3 | 2 | 1 |
SELECT 2
CREATE TABLE
INSERT 0 3
| id_class | total_student |
|---|---|
| 2 | 1 |
| 1 | 2 |
SELECT 2
| min | id_class | total_student |
|---|---|---|
| 1 | 1 | 2 |
| 3 | 2 | 1 |
SELECT 2