I have a result set that comes from:SELECT FieldA, SUM(FieldB) As MySumFROM TableA WHERE MyCriteria = 'OnlyThese' GROUP BY MyCriteria, FieldAORDER BY MyCriteria, FieldA
The result is a couple of rows. I, however, want to have a certain subset from MyTable:SELECT DISTINCT FieldBFROM TableBWHERE FieldC = 'MyAnotherValue'
TableA.FieldA matches to TableB.FieldBso I want the whole SELECT DISTINCT FieldBFROM TableBWHERE FieldC = 'MyAnotherValue'
as the result, with the missing MySums (i.e. nothing to sum) being 0. Isn't the solution RIGHT OUTER JOIN?Could someone here help me with that?Thanks in advance!