QUERY PLAN
Aggregate (cost=4.21..4.22 rows=1 width=32)
-> Seq Scan on tbl_erp_cost_tickets t (cost=0.00..4.03 rows=73 width=5)
Filter: (status = 2)