db2 sql query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivanandang
    New Member
    • Jul 2007
    • 1

    db2 sql query

    hi all,

    i need single db2 sql query for bill range wise
    eg. how many bill in
    0 to 100.99 and
    101 to 200.99 and
    201 to 300.99
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sivanandang
    hi all,

    i need single db2 sql query for bill range wise
    eg. how many bill in
    0 to 100.99 and
    101 to 200.99 and
    201 to 300.99
    Use between

    Comment

    • dewa81
      New Member
      • Jul 2007
      • 14

      #3
      Do u need the results rangewise or you want to select those rows which are in this mentioned range? Or you want to find the count of number of rows satisfying each range in a single query?

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by dewa81
        Do u need the results rangewise or you want to select those rows which are in this mentioned range? Or you want to find the count of number of rows satisfying each range in a single query?
        Yep, I thought there could be something the OP didn't explain well there too. Let's see how it goes.

        Comment

        Working...