Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using multiple IIF's in a SQL statement
Message
 
À
26/03/2002 13:08:05
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00637351
Message ID:
00637398
Vues:
18
Thanks Jason!!

>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');
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform