add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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?.
CREATE TABLE
id number client_id amount
193079 null 001 100900.00
193080 null 002 81900.00
193081 null 003 76400.00
193082 null 004 64800.00
193083 null 001 51200.00
193084 null 002 111348.57
193085 null 002 159962.87
193086 null 003 379492.86
193087 null 004 223358.30
193088 null 003 379492.86
193089 null 001 465358.30
193090 null 003 125358.30
INSERT 0 12
ERROR:  syntax error at or near ".."
LINE 4:                     ... 
                            ^
UPDATE 12
id number client_id amount
193079 1 001 100900.00
193080 1 002 81900.00
193081 1 003 76400.00
193082 1 004 64800.00
193083 2 001 51200.00
193084 2 002 111348.57
193085 3 002 159962.87
193086 2 003 379492.86
193087 2 004 223358.30
193088 3 003 379492.86
193089 3 001 465358.30
193090 4 003 125358.30
SELECT 12