QUERY PLAN
Aggregate (cost=72.66..72.67 rows=1 width=32)
-> Seq Scan on tbl_sales_contracts (cost=0.00..72.65 rows=1 width=3)
Filter: (erp_un_settle_amount < '0'::numeric)