Welcome to Good Training Sign in | Become a member - FREE!
 

Query with diff. conditions

Last post 11-03-2009, 1:03 PM by Marci Reeder. 2 replies.
Sort Posts:
  •  11-03-2009, 12:19 PM 2188

    Query with diff. conditions

    I would like to create a query listing all account types = XXX, but only accounts in states NY, OR and NH?

     How can I do this?

    I selected condition, account = XXX AND Address = NY OR address=OR OR address=NH. However, if I do this, nothing shows up.

    Why?

     

     

  •  11-03-2009, 12:36 PM 2189 in reply to 2188

    Re: Query with diff. conditions

    Marci change your query:

    type = 'xxx' and state in ('NY','OR','NH')

    This is simpler and will work. You'll find the condition operator "IN" within Query Builder. You can either browse for the data (use ctrl-click to select) or just type them in (with quotes, but without brackets - as SLX will add those)

    Mike

     

  •  11-03-2009, 1:03 PM 2190 in reply to 2189

    Re: Query with diff. conditions

    thank you so much! it worked.
View as RSS news feed in XML