I have the following tables
User
---------------------------
UserID, FirstName, LastName
Role
---------------------------
RoleID, UserID, RoleName
Assuming a many to one relationship between Role and User what is the best way I can return in one query a user along with all the roles they might be in, in a single row?
Previously I have always loaded the Roles (or similar data) in a separate query but the problem is that if your data grows this technique becomes too slow.