| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: All hail Bob (not)!
Frank Hamersley wrote:
> Bob Badour wrote:
[..]
>> I agree it is no problem to write the query to get the average ages >> where the age is known. Using null, how does one write the query to >> get the correct result, ie. the average is unknown ?> from table
> select case when count(*) = count(age)
> then avg(age)
> else null
> end as avgage
What say you Bob? The silence to date has been most instructive.
Cheers, Frank. Received on Sun May 07 2006 - 22:42:00 CDT
![]() |
![]() |