QUERY PLAN
Aggregate (cost=1.20..1.21 rows=1 width=32)
-> Seq Scan on tbl_erp_purchase_inbounds t (cost=0.00..1.18 rows=7 width=5)
Filter: (status = 2)