>>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