I'm stuck again!
How can I do a successful LEFT OUTER JOIN with a WHERE constraint on the right table?
Consider this SQL statement:
"SELECT Qty, ItemCode, Description, IFNULL(Attributes.QtyValue,1) FROM PUB.QEvent
LEFT OUTER JOIN PUB.Attributes ON QEvent.Key=Attributes.Key
WHERE Attributes.Name= 'Item'"
It's simplified, but I think I get my point through. All items does not have an attribute. If I leave out WHERE I get rows I don't want from table Attributes, but when using WHERE I do not get the rows that don't have an attribute because of the WHERE constraint.