Aggregate (cost=31.51..31.52 rows=1 width=32) |
-> Nested Loop (cost=0.00..31.50 rows=1 width=32) |
Join Filter: (r.erp_cash_cost_ticket_id = t.id) |
-> Seq Scan on tbl_erp_cash_cost_ticket_approve_payment_settles r (cost=0.00..19.00 rows=4 width=36) |
Filter: (approve_id = 2107) |
-> Materialize (cost=0.00..12.38 rows=2 width=4) |
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..12.38 rows=2 width=4) |
Filter: (status = ANY ('{2,5}'::integer[])) |