My record has 12 columns for the months (jan-dec)
if I want to delete all records that have either 0 or null values on all 12 columns, is this how I do it:
delete FROM table WHERE not(Nvl(Jan,0) != 0
or Nvl(Feb,0) != 0
or Nvl(Mar,0) != 0
or Nvl(Apr,0) != 0
or Nvl(May,0) != 0
or Nvl(Jun,0) != 0
or Nvl(Jul,0) != 0
or Nvl(Aug,0) != 0
or Nvl(Sep,0) != 0
or Nvl(Oct,0) != 0
or Nvl(Nov,0) != 0
or Nvl(Dec,0) != 0)
Any help will be greatly appreciated.
/
if I want to delete all records that have either 0 or null values on all 12 columns, is this how I do it:
delete FROM table WHERE not(Nvl(Jan,0) != 0
or Nvl(Feb,0) != 0
or Nvl(Mar,0) != 0
or Nvl(Apr,0) != 0
or Nvl(May,0) != 0
or Nvl(Jun,0) != 0
or Nvl(Jul,0) != 0
or Nvl(Aug,0) != 0
or Nvl(Sep,0) != 0
or Nvl(Oct,0) != 0
or Nvl(Nov,0) != 0
or Nvl(Dec,0) != 0)
Any help will be greatly appreciated.
/