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?.
3 rows affected
3 rows affected
bookname | quantity |
---|---|
Harry Potter | 10 |
Twilight | 5 |
Bible | 8 |
orderid | bookname | required | availability |
---|---|---|---|
1 | Harry Potter | 9 | yes |
2 | Twilight | 8 | yes |
3 | Bible | 8 | yes |
3 rows affected
bookname | quantity |
---|---|
Harry Potter | 10 |
Twilight | 5 |
Bible | 8 |
orderid | bookname | required | availability |
---|---|---|---|
1 | Harry Potter | 9 | yes |
2 | Twilight | 8 | no |
3 | Bible | 8 | yes |