Hello,
I got a syntax error for this query:
SELECT custOrder, lastName, firstName
FROM custTable
WHERE (NOT (lastName IS NULL)) AND custRegion IN (SELECT CASE centerCode WHEN 'A' THEN ('NC','MN','OP') ELSE ('BC','HE','QP','DC') END)
ORDER BY lastName
The error is at "('NC','MN','OP')" and "('BC','HE','QP','DC')". I guess SQL 2000 doesn't like multiple return. How can I fix this?
Thanks much.
I got a syntax error for this query:
SELECT custOrder, lastName, firstName
FROM custTable
WHERE (NOT (lastName IS NULL)) AND custRegion IN (SELECT CASE centerCode WHEN 'A' THEN ('NC','MN','OP') ELSE ('BC','HE','QP','DC') END)
ORDER BY lastName
The error is at "('NC','MN','OP')" and "('BC','HE','QP','DC')". I guess SQL 2000 doesn't like multiple return. How can I fix this?
Thanks much.