QUERY PLAN
Hash Join (cost=57.55..65.38 rows=1 width=24)
Hash Cond: (tbl_users.id = pci.created_by)
-> Seq Scan on tbl_users (cost=0.00..7.76 rows=24 width=20)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=57.46..57.46 rows=7 width=4)
-> HashAggregate (cost=57.32..57.39 rows=7 width=4)
Group Key: pci.created_by
-> Seq Scan on tbl_purchase_contract_invoices pci (cost=0.00..51.66 rows=2266 width=4)