5 lines
180 B
SQL
5 lines
180 B
SQL
SELECT UserName, RoleName
|
|
FROM Users
|
|
LEFT JOIN RoleAllocation ON RoleAllocation.UserID = Users.UserID
|
|
LEFT JOIN Roles ON Roles.RoleID = RoleAllocation.RoleID
|
|
WHERE Users.UserId = 1 |