QUERY PLAN
Hash Join (cost=67.48..75.34 rows=2 width=24)
Hash Cond: (tbl_users.id = pci.created_by)
-> Seq Scan on tbl_users (cost=0.00..7.80 rows=24 width=20)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=67.37..67.37 rows=9 width=4)
-> HashAggregate (cost=67.19..67.28 rows=9 width=4)
Group Key: pci.created_by
-> Seq Scan on tbl_purchase_contract_invoices pci (cost=0.00..60.75 rows=2575 width=4)