PDA

Click to See Complete Forum and Search --> : SELECT with multiple conditions


Tonatiuh
Aug 19th, 1999, 07:09 AM
The SELECT statament could include a condition (after WHERE clause) to filter the records returned to the recordset.

Example:

SELECT * FROM table WHERE field1='XYZ'

In this case the 'XYZ' is the filter for the field1.

How can I write the statament to fileter for two fields. (field1 and field2)??

Any idea will be appreciated.

Thanks!

Ulises

JHausmann
Aug 19th, 1999, 10:05 AM
"AND" works.

Aug 19th, 1999, 03:55 PM
SELECT * FROM table WHERE field1='XYZ' AND field2='ABC'

-Azzmodan

Tonatiuh
Aug 20th, 1999, 01:28 AM
Thanks! :-)

Ulises