multiple where clauses

  • I need to get the total dollar amount of checking for these branches but having problems with the query:

    select sum(bibal),count(acct) from cb_nd_daily

    where dt='06/10/10'

    and br between 201 and 238 ------This is my question

    and br in (291,292)----->

    Of course I get no data returned because of the "br values" is incorrect. How can I pull br(branches) 201 thru 238,291, and 292?

    Your assistance is much appreciated. Thanns

  • select sum(bibal),count(acct)

    from cb_nd_daily

    where (dt='06/10/10')

    and (

    (br between 201 and 238) or (br in (291,292))

    )

  • Thanks let me give that a try on Monday

  • Thanks that worked.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply