Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ">" in select-Statement
Maxim Demenko schrieb:
> stupsnose schrieb:
>
>> Hello! >> >> I wonder if i can use something like >> SELECT DECODE(a>b,0,1) FROM dual; >> to check if a is greater then b? Can someone help me please? >> >> Thank you! >> Stefan
Hello!
I tried the CASE-thing. It works for normal SELECTs. But i cannot get it to work with GROUP BY. If i use SELECT max(CASE... END "testit") FROM... i get an Oracle Error ORA-00907. Can yoyu help me with that?
Thanks!
Stefan
Received on Thu Jul 21 2005 - 04:10:08 CDT