By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
15 rows affected
30 rows affected
student_id | student_name | student_class | student_roll_no | age | subject | marks | marks_avg |
---|---|---|---|---|---|---|---|
5 | John Terry | 5 | 5 | 10 | Math | 84 | 67.8000000000000000 |
2 | Clark Keny | 5 | 2 | 10 | Math | 69 | 67.8000000000000000 |
4 | Frank Lampard | 5 | 4 | 9 | Math | 77 | 67.8000000000000000 |
1 | John Doe | 5 | 1 | 12 | Math | 79 | 67.8000000000000000 |
7 | Tony Stark | 6 | 2 | 11 | Math | 55 | 50.0000000000000000 |
8 | Bruce Wayne | 6 | 3 | 14 | Math | 66 | 50.0000000000000000 |
12 | Indiana Jones | 7 | 3 | 11 | Math | 78 | 57.5000000000000000 |
10 | Jackie Chan | 7 | 1 | 15 | Math | 87 | 57.5000000000000000 |
11 | John Wick | 7 | 2 | 14 | Math | 68 | 57.5000000000000000 |
4 | Frank Lampard | 5 | 4 | 9 | Science | 72 | 69.2000000000000000 |
2 | Clark Keny | 5 | 2 | 10 | Science | 72 | 69.2000000000000000 |
5 | John Terry | 5 | 5 | 10 | Science | 88 | 69.2000000000000000 |
8 | Bruce Wayne | 6 | 3 | 14 | Science | 78 | 51.5000000000000000 |
6 | Peter Parker | 6 | 1 | 13 | Science | 54 | 51.5000000000000000 |
7 | Tony Stark | 6 | 2 | 11 | Science | 54 | 51.5000000000000000 |
12 | Indiana Jones | 7 | 3 | 11 | Science | 93 | 65.5000000000000000 |
11 | John Wick | 7 | 2 | 14 | Science | 82 | 65.5000000000000000 |
10 | Jackie Chan | 7 | 1 | 15 | Science | 92 | 65.5000000000000000 |