6
Shouts

Fun with ORDER BY clause

published 576 days, 21 hours, 23 minutes ago posted by dharadhara 579 days, 6 hours, 18 minutes ago
Thursday, October 27, 2011 2:49:45 PM GMT Tuesday, October 25, 2011 5:55:03 AM GMT

You can use Ordinal position in the ORDER BY Clause for sorting the resultset. The ordinal position refers the column position in the SELECT statement. Consider the following select statement select * from ( select 17 as a,2 as b union all select 1 as...

category: Data | clicked: 21 | | source: beyondrelational.com | show counter code
tags: SQL Server, TSQL