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:
01311160
Views:
17
>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 :-)) 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)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform