Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Help 1

Status
Not open for further replies.

Swi

Programmer
Feb 4, 2002
1,970
US
Does anyone have any ideas about what is wrong with the following SQL statement. I am attempting to create a query but it keeps bombing out:

select case when Column = 1 then 0 else 1 end
from Table

Error:
Syntax error (missing operator) in query expression 'case when Column = 1 then 0 else 1 end'.

Swi
 
select IIf(Column = 1, 0, 1)
from Table

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks. Works like a charm. Do you know why the case statement is not working?

Swi
 
Because JetSQL is far away from ANSI compliance ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top