Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with CASE statement
Message
From
28/01/2019 17:52:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01665779
Message ID:
01665782
Views:
52
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform