QUERY PLAN
HashAggregate (cost=44.05..74.51 rows=420 width=40)
Group Key: u.id, srsb.id
-> Nested Loop Left Join (cost=0.14..41.95 rows=420 width=360)
-> Nested Loop Left Join (cost=0.14..23.55 rows=1 width=196)
Join Filter: (u.id = aa.user_id)
-> Index Scan using tbl_users_pkey on tbl_users u (cost=0.14..8.15 rows=1 width=196)
Index Cond: (id = 5493)
-> Seq Scan on tbl_auth_assignments aa (cost=0.00..15.38 rows=2 width=4)
Filter: (user_id = 5493)
-> Seq Scan on tbl_sales_rep_score_bases srsb (cost=0.00..14.20 rows=420 width=164)