QUERY PLAN
Aggregate (cost=23.97..23.98 rows=1 width=4)
-> Seq Scan on tbl_erp_cash_cost_ticket_bank_outs (cost=0.00..23.96 rows=1 width=4)
Filter: ((erp_bank_id IS NOT NULL) AND (erp_cash_cost_ticket_id = 8308))