Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with CASE statement
Message
De
28/01/2019 17:52:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01665779
Message ID:
01665782
Vues:
53
>Hi,
>
>I am going crazy as to why the following give an error:
>
>
>select * from mytable where case when mytable.order_no > 0 then 1=1 else 1=0 end 
>
>
>What is missing in the above?
>
>TIA
select * from mytable where mytable.order_no > 0
PS: As with your previous query, you are going the wrong path, do not unnecessarily try to use case.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform