Q&A about the site for Muslims, experts in Islam, and those interested in learning more about Islam
with t1 as ( select account_id, user_id from dbo.sede_users where site_id = 69 ), t2 as ( select AccountId as account_id, Id as user_id from Users ) SELECT * FROM t1 inner join t2 on t1.account_id = t2.account_id order by t2.account_id