Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using option button in sql
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
MS SQL Server
Miscellaneous
Thread ID:
01311140
Message ID:
01311167
Views:
29
>>Boris i have problem when i slect records both,
>>in filed (where sex=1 and sex=2).
>
>There is NO need of where. If that field contains only 1 or 2 you will follow Sergey's answer, select w/o any WHERE clause. If you can have some other values (Hmm, I am curious what they could be :-))

Unisex. :)

you need to use OR instead of AND, just because no value can be 1 AND 2 at the same time:
>
>(where sex=1 OR sex=2)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform