The Wayback Machine - http://web.archive.org/web/20211001152616/https://www.geeksforgeeks.org/sql-aliases/amp/

SQL | Aliases

Aliases are the temporary names given to table or column for the purpose of a particular SQL query. It is used when name of column or table is used other than their original names, but the modified name is only temporary.

Basic Syntax:

Queries for illustrating column alias

     

      Queries for illustrating table alias


      Generally table aliases are used to fetch the data from more than just single table and connect them through the field relations.

         

        This article is contributed by Pratik Agarwal. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

        Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

        Attention reader! Don’t stop learning now. Learn SQL for interviews using SQL Course  by GeeksforGeeks.

        Article Tags :
        Practice Tags :