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

Home -> Community -> Usenet -> c.d.o.tools -> Simple Query Help

Simple Query Help

From: Gabriel Millerd <millerd_at_ns1.rli-net.net>
Date: 2000/05/25
Message-ID: <8gjoff$f4a$1@news.powerisp.com>#1/1

What is wrong with this query?

select * from (select a from tablename where b = 1 order by ts desc) where rownum < 100

I get a ORA-0097: missing right parenthesis.

This works just fine however (but not what i want)

select * from (select a from tablename where b = 1) where rownum < 100

Is there an easier way or a work around?

---
Gabriel Millerd   |       Let them hate, so long as they fear.  -Lucius
Sith Admin        |                      Accius, Fragment
http://sabbat.org |
Received on Thu May 25 2000 - 00:00:00 CDT

Original text of this message

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