I have the following query:
SELECT * FROM MUFFIN_TYPES MT
WHERE MT.flavor IS NULL
OR MT.flavor IS NOT NULL
AND MT.additionDate IS NOT NULL
Without clarifying parenthesis this is confusing. Would MT.flavor IS NULL OR MT.flavor IS NOT NULL
always evaluate to true? Or would it evaluate as MT.flavor IS NULL (OR MT.flavor IS NOT NULL AND MT.additionDate IS NOT NULL)
?
I couldn't find any documentation on the matter. I the latter of the two options, but I'm not sure.
Note: I'm using Oracle Pl/SQL.