Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using multiple IIF's in a SQL statement
Message
From
26/03/2002 13:08:05
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00637351
Message ID:
00637389
Views:
17
Instead of using nested IIFs sue the IN clause.
SELECT phone.Name, phone.calldate, phone.phonenumber, (IIf(Left([phonenumber],3)="813","Tampa","Unknown")) AS Area
FROM phone
WHERE
Left([phonenumber],3) IN ('813','815','827');
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform