Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Alias for a CASE WHEN expression in a SELECT cannot be used in GROUP BY?
On 4 Mar 2006 12:14:03 -0800, "Jining Han" <jining.han_at_gmail.com>
wrote:
>Yes, a view (inline or not) is OK, but I just want to be able to
>explain.
>
>Thanks
>JH
It is quite simple, yet it seems you just dont *want* to understand
it:
aliases are not allowed in GROUP BY clause.
That's how the SQL syntax is defined and that's all there is it to it.
-- Sybrand Bakker, Senior Oracle DBAReceived on Sun Mar 05 2006 - 08:15:28 CST
![]() |
![]() |