LeonelSanchezJr
Programmer
I need to apply certain filters to my WHERE clause
depending on the certain conditions which I believe can be met by a CASE statement.
example:
SELECT *
FROM TABLE
WHERE TABLE.COUNTRY = 'ABC'
(CASE WHEN TABLE.INVTYPE = '999'
THEN AND TABLE.ARTYPE <> '555'
END
)
;
The error I get is:
SQL Command not properly ended.
Thanks,
Leo ;-)
depending on the certain conditions which I believe can be met by a CASE statement.
example:
SELECT *
FROM TABLE
WHERE TABLE.COUNTRY = 'ABC'
(CASE WHEN TABLE.INVTYPE = '999'
THEN AND TABLE.ARTYPE <> '555'
END
)
;
The error I get is:
SQL Command not properly ended.
Thanks,
Leo ;-)