Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

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

Re: how can you count up the number of columns in a row that have a certain value

From: Videofan <videofan_at_aol.com>
Date: 26 Mar 1999 02:25:15 GMT
Message-ID: <19990325212515.29231.00000203@ng-fw1.aol.com>


try this:

select count(*)
from table
where length(decode(read1,0,0,null)||

                          decode(read2,0,0,null)||

.
.
decode(read24,0,0,null)) > 16;
Received on Thu Mar 25 1999 - 20:25:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US