QUERY PLAN
Unique (cost=16.08..16.13 rows=10 width=4)
-> Sort (cost=16.08..16.11 rows=10 width=4)
Sort Key: s.created_by
-> Hash Join (cost=4.96..15.92 rows=10 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=10 width=4)
-> Seq Scan on tbl_punch_leave_carbon_copy_rels ccr (cost=0.00..4.84 rows=10 width=4)
Filter: (user_id = 1001)