Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select
Message
 
 
To
22/06/1999 14:25:10
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00232621
Message ID:
00232637
Views:
19
>Does anyone know how I can implement IIF statements in an SQL. I am running a SQL select statement that looks for the patient id but the problem arises when the patient has two different visit dates to the doctor. but I only need the latest date.

Sure...
SELECT patname, iif(pattype = "A","ACUTE  ","CHRONIC") as ptype ;
   FROM patient
   INTO CURSOR cPats
Previous
Reply
Map
View

Click here to load this message in the networking platform