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?.
10 rows affected
10 rows affected
trans_id | customer_id | company | first_name | last_name | due |
---|---|---|---|---|---|
10 | 2 | Aliance Magnet A LLP | A | Wilkinson | 3.72 |
9 | 10 | Numpties United | Y | Cunningham | 1.40 |
1 | 9 | Placement Incorporated | C | Mendez | 1.08 |
7 | 9 | Placement Incorporated | C | Mendez | 5.32 |
8 | 9 | Placement Incorporated | C | Mendez | 9.62 |
trans_id | customer_id | company | first_name | last_name | due | rn |
---|---|---|---|---|---|---|
10 | 2 | Aliance Magnet A LLP | A | Wilkinson | 3.72 | 1 |
9 | 10 | Numpties United | Y | Cunningham | 1.40 | 2 |
8 | 9 | Placement Incorporated | C | Mendez | 9.62 | 3 |
7 | 9 | Placement Incorporated | C | Mendez | 5.32 | 3 |
1 | 9 | Placement Incorporated | C | Mendez | 1.08 | 3 |