QUERY PLAN
Unique (cost=142.50..142.51 rows=1 width=4)
-> Sort (cost=142.50..142.50 rows=1 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.28..142.49 rows=1 width=4)
-> Seq Scan on tbl_reimbursement_settle_rels rsr (cost=0.00..134.19 rows=1 width=4)
Filter: (user_id = 1001)
-> Index Scan using tbl_reimbursements_pkey on tbl_reimbursements s (cost=0.28..8.30 rows=1 width=8)
Index Cond: (id = rsr.reimbursement_id)