Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

My 2 Cents Order By Clause

Discussion in 'Database Management' started by Swati Mishra, Mar 17, 2016.

  1. Swati Mishra

    Yellow Belt

    Joined:
    Dec 28, 2015
    Messages:
    644
    Ratings:
    +105 / -0
    If you want to retrieve the data from the database and also display the data in specific order then we use the SELECT statement with the order by clause.
    Syntax

    SELECT select_list
    FROM table_name
    [ORDER BY column_name/ select_list_number/expression
    [ASC/DESC][, column_name/select_list_number/expression
    [ASC/DESC]…..]
     

Share This Page