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