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