Home » SQL & PL/SQL » SQL & PL/SQL » how to replace rank() function in pl/sql
how to replace rank() function in pl/sql [message #43434] Thu, 17 July 2003 22:07 Go to next message
soy
Messages: 6
Registered: July 2003
Junior Member
I have sql queries that use Rank() quite a bit. These are select queries that return mulitple rows (based on if the rank = 1 or 2 or whatever). Now when I try and use Rank() in pl/sql (Oracle 8i) it doesn't work since it isn't supported. What can I do to get around this limitation?
Re: how to replace rank() function in pl/sql [message #43435 is a reply to message #43434] Fri, 18 July 2003 00:31 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
1. Use NDS (Native Dynamic SQL) to pass the select directly to the SQL engine.

2. Create an alternative select.

MHE
Re: how to replace rank() function in pl/sql [message #43438 is a reply to message #43435] Fri, 18 July 2003 15:42 Go to previous message
soy
Messages: 6
Registered: July 2003
Junior Member
take a look at this thread too please:
http://www.orafaq.net/msgboard/newbies/messages/9790.htm
Previous Topic: Comparing Null in WHERE Clause
Next Topic: How would I do this?
Goto Forum:
  


Current Time: Fri Aug 08 04:14:25 CDT 2025