Its easy... 3 left joins and everything is fine!I hope i havnt done any error in the few secunds i wrote the sql-query :D
SELECT Permission.* FROM User LEFT JOIN GroupSet ON GroupSet.UserId=User.Id LEFT JOIN PermissionSet ON PermissionSet.GroupId=GroupSet.GroupId LEFT JOIN Permission ON Permission.Id=PermissionSet.PermissionId WHERE User.Id=123; -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
