Results 1 to 4 of 4

Thread: SELECT with multiple conditions

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    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

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    "AND" works.

  3. #3
    Guest

    Post

    SELECT * FROM table WHERE field1='XYZ' AND field2='ABC'

    -Azzmodan

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    Thanks! :-)

    Ulises

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width