Use this sample schema and data with the related JOIN tutorial. The dump keeps the original teaching dataset while using current integer declarations, InnoDB and utf8mb4 defaults.
| id | name | class | sex | house_id | |
|---|---|---|---|---|---|
| 1 | John Deo | Four | female | 2 | 2 | Max Ruin | Three | male | 1 | 3 | Arnold | Three | male | 1 | 4 | Krish Star | Four | female | 3 | 5 | John Mike | Four | female | 2 |
| mark_id | student_id | exam_dt | exam | mark |
|---|---|---|---|---|
| 1 | 2 | 2017-04-05 | Sem1 | 80 |
| 2 | 2 | 2017-04-19 | Sem2 | 75 |
| 3 | 1 | 2017-04-05 | Sem1 | 84 |
| 4 | 1 | 2017-04-19 | Sem2 | 76 |
| 5 | 3 | 2017-04-05 | Sem1 | 71 |
| 6 | 3 | 2017-04-19 | Sem2 | 72 |
| 7 | 1 | 2017-05-10 | Sem1 | 93 |
| 8 | 1 | 2017-05-24 | Sem2 | 90 |
| 9 | 2 | 2017-05-10 | Sem1 | 85 |
| 10 | 2 | 2017-05-24 | Sem2 | 86 |
| 11 | 3 | 2017-05-10 | Sem1 | 63 |
| 12 | 3 | 2017-05-24 | Sem2 | 80 |
| 13 | 1 | 2017-06-07 | Sem1 | 80 |
| 14 | 1 | 2017-06-21 | Sem2 | 75 |
| 15 | 2 | 2017-06-07 | Sem1 | 50 |
| 16 | 2 | 2017-06-21 | Sem2 | 87 |
| 17 | 3 | 2017-06-07 | Sem1 | 59 |
| 18 | 3 | 2017-06-21 | Sem2 | 61 |
| 19 | 4 | 2017-04-05 | Sem1 | 84 |
| 20 | 4 | 2017-04-19 | Sem2 | 82 |
| 21 | 5 | 2017-04-05 | Sem1 | 63 |
| 22 | 5 | 2017-04-19 | Sem2 | 95 |
| 23 | 4 | 2017-05-10 | Sem1 | 59 |
| 24 | 4 | 2017-05-24 | Sem2 | 85 |
| 25 | 5 | 2017-05-10 | Sem1 | 89 |
| 26 | 5 | 2017-05-24 | Sem2 | 84 |
| 27 | 4 | 2017-06-07 | Sem1 | 84 |
| 28 | 4 | 2017-06-21 | Sem2 | 87 |
| 29 | 5 | 2017-06-07 | Sem1 | 95 |
| 30 | 5 | 2017-06-21 | Sem2 | 87 |
| house_id | h_name | |
|---|---|---|
| 1 | King | 2 | Queen | 3 | Jack |
| fee_id | id | dt | amount |
|---|---|---|---|
| 1 | 1 | 2013-01-08 | 200 |
| 2 | 1 | 2013-01-10 | 100 |
| 3 | 2 | 2013-01-24 | 120 |
| 4 | 3 | 2013-02-02 | 211 |
| 5 | 2 | 2013-02-07 | 150 |
| 6 | 3 | 2013-02-06 | 135 |
| 7 | 4 | 2013-02-14 | 100 |
← Back to the related JOIN tutorial
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.