QUERY PLAN
Unique (cost=10.22..10.22 rows=1 width=4)
-> Sort (cost=10.22..10.22 rows=1 width=4)
Sort Key: s.created_by
-> Hash Join (cost=4.90..10.21 rows=1 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.89..4.89 rows=1 width=4)
-> Seq Scan on tbl_punch_leave_carbon_copy_rels ccr (cost=0.00..4.89 rows=1 width=4)
Filter: (user_id = 1000)