Y2S1-Database_Design/SQL/views/Users.sql

5 lines
515 B
MySQL
Raw Permalink Normal View History

2020-06-07 21:29:59 +00:00
SELECT dbo.Roles.RoleName, dbo.Users.LikeCount, dbo.Users.UserDescription, dbo.Users.UserName, dbo.ProfilePicture.PictureFileName, dbo.ProfilePicture.Height, dbo.ProfilePicture.Width
FROM dbo.Roles INNER JOIN
dbo.RoleAllocation ON dbo.Roles.RoleID = dbo.RoleAllocation.RoleID INNER JOIN
dbo.Users ON dbo.RoleAllocation.UserID = dbo.Users.UserID INNER JOIN
dbo.ProfilePicture ON dbo.Users.UserID = dbo.ProfilePicture.UserID