How to Select with more than one AND in a Where SQL Clause?

From: "Zenith Vivas" <zenithvivas(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to Select with more than one AND in a Where SQL Clause?
Date: 2002-08-29 19:20:46
Message-ID: F193T8A943W4Kpvh7ZZ0000547b@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dear friends,
I need a SQL sentence like this:

Qry = "Select * from Table Where A1 Like '%' AND A2 Like '%' AND A3 Like '%'
AND A4 Like '%' AND A5 Like '%'"

But in spite of I need a SQL sentence with four (04) AND's in its Where
clause, my SQL compiler only allow me using one AND.

So How can I solve such a problem.

Many thanks in advance!

Zenith Vivas

_________________________________________________________________
Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-08-29 20:45:25 Re: query problem
Previous Message Bruno Wolff III 2002-08-29 19:06:26 Re: record count