Best unofficial Apache Server developers community |
|
I have the following query in MySQL and want to convert it to Oracle. I tried row_number() function and subqueries in Oracle but could not make it run properly. The query is kinda weird and covers multiple tables. Original MySQL Query:
I could not find the proper statement to replace LIMIT so make the query run against Oracle. Thanks.
posted via StackOverflow
|
|
 
|
It's a bit of a pain but you can use rownum
The only reason I subselected twice was the distinct is performing a group and I kept the ordering outside of it, it could be done with a single subselect. |
|
 
|
|
|
 
|
|
|
 
|
|