
- Forum
- Database
- Oracle Database
- oracle view
oracle view
This is a discussion on oracle view within the Oracle Database forums, part of the Database category; hello everbody, can anybody tell me that why we cannot use order by clause in view....
-
03-13-2008, 02:45 AM #1
- Join Date
- Feb 2008
- Answers
- 1
oracle view
hello everbody,
can anybody tell me that why we cannot use order by clause in view.
-
03-19-2008, 09:02 PM #2
- Join Date
- Jun 2005
- Answers
- 1
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





