andreadd
MIS
- Jan 15, 2008
- 67
Hello,
I am writing a query and part of my select state is this: SUM (A.INVOICE_AMOUNT) - B.INVOICE_AMOUNT) as MINE
now this works well but returns all values and I am only after values greater than 0. i am familiar with MSSQL but very rusty with oracle syntax. I tried using a case statement and I tried to add in the where clause to only return those records where MINE is > 0 but I keep messing it up.
can anyone help?
thanks!
I am writing a query and part of my select state is this: SUM (A.INVOICE_AMOUNT) - B.INVOICE_AMOUNT) as MINE
now this works well but returns all values and I am only after values greater than 0. i am familiar with MSSQL but very rusty with oracle syntax. I tried using a case statement and I tried to add in the where clause to only return those records where MINE is > 0 but I keep messing it up.
can anyone help?
thanks!