Sorting Results


  1. If attribute “fruit” stores data as “apple, mango, banana” in table person then what will be the output of the following query?
    SELECT fruit FROM Employee
    WHERE Emp_id=1
    ORDER BY fruit;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    ORDER BY Clause always sort in alphabetical order which also known as lexicographical order.


  1. Which Clause is used to sort the stored data in alphabetical order?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ORDER BY