I'm trying to include account of records associated with a particular user in the same row as other information about the user. Something like:
select
au.UserName as UsersName,
Count(
select sg.Id from sg
where sg.Username = UsersName
)
...
Is something like this possible?