QUERY PLAN
Sort (cost=51.47..51.49 rows=10 width=158)
Sort Key: eg.sort
-> Group (cost=51.25..51.30 rows=10 width=158)
Group Key: eg.id
-> Sort (cost=51.25..51.27 rows=10 width=154)
Sort Key: eg.id
-> Hash Join (cost=35.62..51.08 rows=10 width=154)
Hash Cond: (eg.id = egr.engineer_group_id)
-> Seq Scan on tbl_engineer_groups eg (cost=0.00..14.12 rows=329 width=154)
Filter: (id <> 999999)
-> Hash (cost=35.50..35.50 rows=10 width=4)
-> Seq Scan on tbl_engineer_group_relationships egr (cost=0.00..35.50 rows=10 width=4)
Filter: (engineer_id = 5495)