QUERY PLAN
Unique (cost=36.80..36.85 rows=1 width=4)
-> Sort (cost=36.80..36.83 rows=10 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.00..36.63 rows=10 width=4)
Join Filter: (s.id = ccr.punch_overtime_id)
-> Seq Scan on tbl_punch_overtimes s (cost=0.00..1.01 rows=1 width=8)
-> Seq Scan on tbl_punch_overtime_carbon_copy_rels ccr (cost=0.00..35.50 rows=10 width=4)
Filter: (user_id = 1001)