Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how can you count up the number of columns in a row that have a certain value
try this:
select count(*)
from table
where length(decode(read1,0,0,null)||
decode(read2,0,0,null)||Received on Thu Mar 25 1999 - 20:25:15 CST
.
.
decode(read24,0,0,null)) > 16;