Warning! I'm a SQL neophyte, but I was interested in your question, so I tried the following
SELECT Facility.fty_num, "Yes" as f1 ;
FROM apmm!facility ;
WHERE Facility.fty_num <> " " ;
UNION ;
SELECT Facility.fty_num, "No " as f1 ;
FROM apmm!facility;
WHERE Facility.fty_num = " "
just as a test. It's close, but it's just selecting distinct entries. But, maybe it will help a bit.
>Does anyone know if there is a SQL Server function which is like IIF() in VFP?
I want to do a select statment like the following...
>
>SQLEXEC(1,"select iif(lCondition,'Yes','No') from Table")
>
>Thanks,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only