Subquery Scan on sub (cost=1305.55..1524.79 rows=37 width=245) |
Filter: (sub.id = 7333) |
-> WindowAgg (cost=1305.55..1433.44 rows=7308 width=245) |
-> Sort (cost=1305.55..1323.82 rows=7308 width=237) |
Sort Key: sub_1.created_at DESC |
-> Subquery Scan on sub_1 (cost=690.39..836.55 rows=7308 width=237) |
-> HashAggregate (cost=690.39..763.47 rows=7308 width=237) |
Group Key: r.id |
-> Hash Right Join (cost=307.43..652.18 rows=15286 width=237) |
Hash Cond: (rvr.erp_cash_cost_ticket_id = r.id) |
Filter: ((r.created_by = 1001) OR (rvr.user_id = 1001) OR (r.created_by = ANY ('{1000,1001,1004,1005,1011,1013,1015,1017,1022,1023,5016,5064,5085,5087,5248,5250,5252,5295,5300,5311,5332,5360,5388,5446,5449}'::integer[]))) |
-> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr (cost=0.00..294.58 rows=19058 width=8) |
-> Hash (cost=216.08..216.08 rows=7308 width=237) |
-> Seq Scan on tbl_erp_cash_cost_tickets r (cost=0.00..216.08 rows=7308 width=237) |