Y2S1-Database_Design/SQL/queries/query 1.sql
2020-06-07 22:29:59 +01:00

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