QUERY PLAN
Unique (cost=13.10..13.11 rows=1 width=4)
-> Sort (cost=13.10..13.11 rows=1 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.14..13.09 rows=1 width=4)
-> Seq Scan on tbl_punch_away_verify_rels ccr (cost=0.00..4.86 rows=1 width=4)
Filter: (user_id = 5064)
-> Index Scan using tbl_punch_aways_pkey on tbl_punch_aways s (cost=0.14..8.16 rows=1 width=8)
Index Cond: (id = ccr.punch_away_id)