Good afternoon experts.
I am trying to filter out some extraneous records, and I need to put conditionA or conditionB in a WHERE statement, and being relatively new to Teradata I am unsure how to handle it in SQL.
For example:
SELECT [field1], [field2], [field3]
FROM tblABC
WHERE
IF conditionA THEN something = something
ELSEIF condition THEN something <> something
END IF
I have not had much luck with IF, and I have been experimented with CASE / WITH. The concept of WHERE seems to require WHERE something = something and challenging to set a variable condition.
Thank you, WHEELS
I am trying to filter out some extraneous records, and I need to put conditionA or conditionB in a WHERE statement, and being relatively new to Teradata I am unsure how to handle it in SQL.
For example:
SELECT [field1], [field2], [field3]
FROM tblABC
WHERE
IF conditionA THEN something = something
ELSEIF condition THEN something <> something
END IF
I have not had much luck with IF, and I have been experimented with CASE / WITH. The concept of WHERE seems to require WHERE something = something and challenging to set a variable condition.
Thank you, WHEELS