Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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....

  1. #1
    chita12342003 is offline Junior Member Array
    Join Date
    Feb 2008
    Answers
    1

    oracle view

    hello everbody,
    can anybody tell me that why we cannot use order by clause in view.


  2. #2
    Chandrasekar.m is offline Junior Member Array
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...