|
SELECT
STATION,
EMISSION_FREQ, RECEPTION_FREQ, DECODE(SUBSTR(NVL(TO_CHAR(RECEPTION_FREQ),'NONE'),1,1),'N',EMISSION_FREQ*1,EMISSION_FREQ*2) VALUE FROM TEST; STATION EMISSION_FREQ
RECEPTION_FREQ
VALUE
---------- ------------- -------------- --------- STAT1 192.5 193.5 385 STAT2 192.5 192.5 STAT2 194 194 STAT2 193.5 194.5 387 STAT2 195 195 I did not understand what you meant by 'And I would like to select the number
of frequencies, sort of count(*), for a given station and multiply that value by
2 '
so what I have done
is
if
the reception_freq is null (that would mean there is only emission_freq
)
then
value=emission_freq*1
else
value=emission_freq*1
end
if
Hope this is what
you wanted
coz
I am a novice Oracle Certifiable DBBS
|
- Simple SQL Query Question ALEMU Abiy
- RE: Simple SQL Query Question Amar Kumar Padhi
- Re: Simple SQL Query Question novicedba
- Re: Simple SQL Query Question novicedba
- RE: Simple SQL Query Question ALEMU Abiy
- RE: Simple SQL Query Question ALEMU Abiy
- RE: Simple SQL Query Question Amar Kumar Padhi
- RE: Simple SQL Query Question Harsh Agrawal
- RE: Simple SQL Query Question ALEMU Abiy
- Re: Simple SQL Query Question novicedba
- RE: Simple SQL Query Question ALEMU Abiy
- RE: Simple SQL Query Question ALEMU Abiy
