Re: [PHP-DB] Logicproblem in WHERE statement

2002-01-16 Thread Jason Wong
On Thursday 17 January 2002 06:27, Jaime A. Chavarriaga L. wrote: > Jason > > > SELECT * FROM TABLE > > WHERE sex = 1 OR country = 'CA'; > > > > Will select all users who are female as well as all users from Canada. > > You may get duplicate records (for people who are female and from Canada) > >

Re: [PHP-DB] Logicproblem in WHERE statement

2002-01-16 Thread Jaime A. Chavarriaga L.
Jason > SELECT * FROM TABLE > WHERE sex = 1 OR country = 'CA'; > > Will select all users who are female as well as all users from Canada. You > may get duplicate records (for people who are female and from Canada) so you > may want to use DISTINCT as well. ok... you are right... but this error

Re: [PHP-DB] Logicproblem in WHERE statement

2002-01-16 Thread DL Neil
=An alternative approach:- > > I am building a user search engine. Now I do not know how to gett > > following: > > > > a mandatory field and a voluntary field > > > > For example I would like to get all female users and those who are from > > canada. > > The results should show all users who are

Re: [PHP-DB] Logicproblem in WHERE statement

2002-01-15 Thread Jason Wong
On Wednesday 16 January 2002 06:05, Andy wrote: > Hi there, > > I am building a user search engine. Now I do not know how to gett > following: > > a mandatory field and a voluntary field > > For example I would like to get all female users and those who are from > canada. > The results should show