Thread: oracle view
View Single Post

  #2 (permalink)  
Old 03-19-2008, 08:02 PM
Chandrasekar.m Chandrasekar.m is offline
Junior Member
 
Join Date: Jun 2005
Posts: 1
Chandrasekar.m is on a distinguished road
I assume you are talking about creating view.

We can Use Order by Clause while creating View. I am not sure about the version that you are working on. It works in 10g

CREATE VIEW employeeview AS SELECT *FROM employees ORDER BY 1 DESC;

So if we execute
SELECT *FROM employeeview ;

It would return employee records on descending order of first column.

Hope this clarifies.
Reply With Quote