QUERY PLAN
HashAggregate (cost=10.13..10.31 rows=18 width=4)
Group Key: s.created_by
-> Hash Join (cost=4.40..10.09 rows=18 width=4)
Hash Cond: (s.id = ccr.punch_leave_id)
-> Seq Scan on tbl_punch_leaves s (cost=0.00..4.67 rows=167 width=8)
-> Hash (cost=4.18..4.18 rows=18 width=4)
-> Seq Scan on tbl_punch_leave_verify_rels ccr (cost=0.00..4.18 rows=18 width=4)
Filter: (user_id = 1000)