I guess you are right. I was hoping to use a simple expression instea of this long one: Selectprovid,'ProviderID'=casewhenprovID =space(1)THEN' 'ELSE'smething else'ENDfromprovider
________________________________ From: Fred Taylor <[email protected]> To: ProFox Email List <[email protected]> Sent: Friday, January 20, 2012 12:09 PM Subject: Re: SQL Syntax If this is VFP SQL, your IIF would work, if it's some other SQL, like when using SQLEXEC, you have to use the backend's appropriate syntax. Fred On Fri, Jan 20, 2012 at 1:06 PM, Jean Haidar <[email protected]> wrote: > can we use IIF in SQL syntax. > > I am using this simple Statement: > SELECTIIF (payment > 10 , NULL,NULL)ASResult fromprovider > > getting incorrect syntax near '>'. > > > > but this SQL statement works fine > Select > > any ideas? > provid,'ProviderID'=casewhenprovID =space(1)THEN''ELSE'smething > else'ENDfromprovider > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAJCBksqOXaE6QJ1hhwSyKHpZQbbX6E4wNnynV82yL=n80i_...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

