AS is used to rename a column or table with an alias. The alias is only good for that query.
For example, you "might" have a table called "Customers", a descriptive good name. I might choose to alias that with AS to
c and "Orders" to
SELECT o.OrderID, o.OrderDate, c.CustomerName
FROM Customers AS c, Orders AS o
WHERE c.CustomerName="Around the Horn" AND c.CustomerID=o.CustomerID;
It's in the
SELECT and in the
WHERE statements that we see the use of the AS effectively. We no longer have to type the whole unambiguous name of
There is another command for
ascending order which is
Hope that helps!
*if the post above has answered the question, please mark the topic as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied support or guarantee by the ITProTV team.