QUERY PLAN
Aggregate (cost=50.66..50.67 rows=1 width=32)
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..45.33 rows=2133 width=6)