Re: How to filter zeroes in select statements
From: Mike Ziemann East Su <esha1_at_cix.compulink.co.uk>
Date: 1996/05/29
Message-ID: <Ds5u9t.1xK_at_cix.compulink.co.uk>#1/1
Date: 1996/05/29
Message-ID: <Ds5u9t.1xK_at_cix.compulink.co.uk>#1/1
Use the decode function:
select decode(s1,0,s2,s1) from your_table;
Will return s2 if s1=0 but will return s1 if s1<>0
-Neal Gran
Mike Received on Wed May 29 1996 - 00:00:00 CEST