QUERY PLAN
HashAggregate (cost=5.92..6.03 rows=11 width=4)
Group Key: s.created_by
-> Hash Join (cost=2.38..5.89 rows=11 width=4)
Hash Cond: (s.id = ccr.punch_leave_id)
-> Seq Scan on tbl_punch_leaves s (cost=0.00..2.94 rows=94 width=8)
-> Hash (cost=2.24..2.24 rows=11 width=4)
-> Seq Scan on tbl_punch_leave_verify_rels ccr (cost=0.00..2.24 rows=11 width=4)
Filter: (user_id = 1000)