I want to retrieve the first data available based on an or statement, but don't know how.
INNER JOIN table t
ON t.GUID = child.GUID
or t.GUID = 0)
so if t.guid = child.guid returns something I want only it. If not I want the data where t.guid = 0
Does this make sense? Can it be done?
INNER JOIN table t
ON t.GUID = child.GUID
or t.GUID = 0)
so if t.guid = child.guid returns something I want only it. If not I want the data where t.guid = 0
Does this make sense? Can it be done?