Results 1 to 3 of 3

Thread: how to sort

  1. #1
    Join Date
    Sep 2003
    Posts
    2

    Unhappy Unanswered: how to sort

    when I give select sort(salary) from emp;
    it gives an error as
    ORA-00904: invalid column name

    salary is of NUMBER(15,5)
    can't we sort on floating numbers?

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: how to sort

    Originally posted by psatish
    when I give select sort(salary) from emp;
    it gives an error as
    ORA-00904: invalid column name

    salary is of NUMBER(15,5)
    can't we sort on floating numbers?
    Yes, if you use the correct syntax:

    select salary from emp
    order by salary;

  3. #3
    Join Date
    Sep 2003
    Posts
    2

    Re: how to sort

    Originally posted by andrewst
    Yes, if you use the correct syntax:

    select salary from emp
    order by salary;
    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •