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