QUERY PLAN
Aggregate (cost=12.76..12.77 rows=1 width=32)
-> Seq Scan on tbl_erp_wage_tickets t (cost=0.00..12.75 rows=1 width=64)
Filter: (status = 2)