Hello all...
My first post and I'm coming from a SQL Server 2000 background. So, please be kind...
In my select statement I'm using the IIF statement to reference some codes, but I seem to keep getting an error saying that the Expression is too complex in the query expression. Is there anyway of referencing a lookup table and extracting those codes based on a criteria??
For instance my sql statement looks like this:
select [or].one, [or].two, iif([or].three = 'a', 'hey', iif([or].three = 'b', 'bee')) As expr8 (i have about 30 of these comparisons...Is there any other way then to put this IIF directly into a sql statement?? Thanks so much
My first post and I'm coming from a SQL Server 2000 background. So, please be kind...
In my select statement I'm using the IIF statement to reference some codes, but I seem to keep getting an error saying that the Expression is too complex in the query expression. Is there anyway of referencing a lookup table and extracting those codes based on a criteria??
For instance my sql statement looks like this:
select [or].one, [or].two, iif([or].three = 'a', 'hey', iif([or].three = 'b', 'bee')) As expr8 (i have about 30 of these comparisons...Is there any other way then to put this IIF directly into a sql statement?? Thanks so much