Order by
clause with Column Name to Specifies the sort order used on columns returned in a SELECT statement.Syntax :-
SELECT column_name(s)I am also using the same method but do you know we can use Column Index (Integer representing the position of column name) instead of specifying the name or column alias in a SQL Server Order By expression.
FROM table_name
ORDER BY column_name(s) ASC/DESC
As:-
No comments:
Post a Comment