QUERY PLAN
Unique (cost=36.98..37.03 rows=3 width=4)
-> Sort (cost=36.98..37.01 rows=10 width=4)
Sort Key: s.created_by
-> Hash Join (cost=1.29..36.82 rows=10 width=4)
Hash Cond: (ccr.punch_overtime_id = s.id)
-> Seq Scan on tbl_punch_overtime_carbon_copy_rels ccr (cost=0.00..35.50 rows=10 width=4)
Filter: (user_id = 1000)
-> Hash (cost=1.13..1.13 rows=13 width=8)
-> Seq Scan on tbl_punch_overtimes s (cost=0.00..1.13 rows=13 width=8)