QUERY PLAN
Hash Join (cost=67.38..84.25 rows=1 width=24)
Hash Cond: (tbl_users.id = pci.created_by)
-> Seq Scan on tbl_users (cost=0.00..16.80 rows=25 width=20)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=67.28..67.28 rows=8 width=4)
-> HashAggregate (cost=67.12..67.20 rows=8 width=4)
Group Key: pci.created_by
-> Seq Scan on tbl_purchase_contract_invoices pci (cost=0.00..60.70 rows=2570 width=4)