RE: Problem with restricting self joins.
I think I got it... Select Coalesce(a.ryear,b.ryear,c.ryear) as rYear, a.rvalue as 'ValueOfSubID1', b.rvalue as 'ValueOfSubID2', c.rvalue as 'ValueOfSubID3' FROM (Select * From MyTable WHERE ID = 1 and SubID = 2) a FULL OUTER JOIN (Select * From MyTable WHERE ID = 1 and SubID = 1) b On a.rYear = b.rYear and a.ID = […]
2003-07-22
1 reads