Hi,
I'm building a query that needs to restrict on several fields, but only where the records match this exact combination of variables.
I've done this in the past by building individual queries for each element of the extraction to avoid excluding more records than I want but would prefer to do so in one query.
the logic is as follows;
select [Dataset].[filed1],[Dataset].[field2])
from [Dataset]
where ([field1])<>0 and where ([field2]) <> "Definition1" or "definition2"
any ideas?
I'm building a query that needs to restrict on several fields, but only where the records match this exact combination of variables.
I've done this in the past by building individual queries for each element of the extraction to avoid excluding more records than I want but would prefer to do so in one query.
the logic is as follows;
select [Dataset].[filed1],[Dataset].[field2])
from [Dataset]
where ([field1])<>0 and where ([field2]) <> "Definition1" or "definition2"
any ideas?