PL/SQL (MOSC)

MOSC Banner

ORDER BY

edited Nov 26, 2009 2:00AM in PL/SQL (MOSC) 6 commentsAnswered
 Hi,

        I am able to use ORDER BY clause in inline view ex.1

SELECT * FROM ( SELECT * FROM table1 ORDER BY 1 ) A * FROM ( SELECT * FROM table1 ORDER BY 1 ) A

but not with sub query ex2

SELECT * FROM table1 WHERE col1 IN (SELECT col2 FROM table2 ORDER BY col2) * FROM table1 WHERE col1 IN (SELECT col2 FROM table2 ORDER BY col2) Please guide me why its not possible. Regards,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center