Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Why doesn't this work?

Why doesn't this work?

From: PMG <pete_g_at_2xtreme.net>
Date: Sun, 13 Dec 1998 06:35:33 GMT
Message-ID: <3673603E.B03ADD12@2xtreme.net>


This query works in SQLPlus:

select name, count(name)
from emp
group by name
order by count(name) desc;

But why doesn't this work:

create view v as
select name, count(name)
from emp
group by name
order by count(name) desc;

I thought views were just stored queries. So if the first one works why doesn't the second work? Received on Sun Dec 13 1998 - 00:35:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US