I'm trying to generate a typed list that gives me the same result as
SELECT
PDA_Categories.ID, PDA_Categories.Name,
ISNULL(PDA_CategoryOverrides.PriorityID, PDA_Categories.PriorityID) AS PriorityID,
ISNULL(PDA_PriorityRatings.Name, PDA_PriorityRatings_1.Name) AS PriorityName,
PDA_Categories.Description
FROM PDA_PriorityRatings PDA_PriorityRatings_1 INNER JOIN PDA_Categories ON
PDA_PriorityRatings_1.ID = PDA_Categories.PriorityID LEFT OUTER JOIN
PDA_PriorityRatings INNER JOIN PDA_CategoryOverrides ON
PDA_PriorityRatings.ID = PDA_CategoryOverrides.PriorityID AND PDA_CategoryOverrides.ModuleID = 0 ON
PDA_Categories.ID = PDA_CategoryOverrides.CategoryID
But I can't see how to join on the same Table Twice, I'm also unsure how to do the same as an IsNull in LLBGen.
-jeremy