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?.
12 rows affected
sno | mingrade | maxgrade |
---|---|---|
108 | 78 | 81 |
105 | 75 | 88 |
ERROR: column "scores.grade" must appear in the GROUP BY clause or be used in an aggregate function
LINE 4: HAVING grade BETWEEN 70 and 90
^
sno |
---|
101 |
105 |
107 |
108 |
109 |
null |
sno | grade |
---|---|
105 | 75 |
109 | 76 |
108 | 78 |
107 | 79 |
108 | 81 |
101 | 85 |
null | 86 |
105 | 88 |