QUERY PLAN
Aggregate (cost=1.40..1.41 rows=1 width=32)
-> Seq Scan on tbl_erp_purchase_inbounds t (cost=0.00..1.40 rows=1 width=32)
Filter: (status = 2)