QUERY PLAN
Unique (cost=15.34..15.35 rows=2 width=4)
-> Sort (cost=15.34..15.34 rows=2 width=4)
Sort Key: s.created_by
-> Hash Join (cost=4.86..15.33 rows=2 width=4)
Hash Cond: (s.id = ccr.punch_leave_id)
-> Seq Scan on tbl_punch_leaves s (cost=0.00..9.63 rows=163 width=8)
-> Hash (cost=4.84..4.84 rows=2 width=4)
-> Seq Scan on tbl_punch_leave_carbon_copy_rels ccr (cost=0.00..4.84 rows=2 width=4)
Filter: (user_id = 5064)