Home Forums Article Discussions Article Discussions by Author Discuss content posted by Press Release SQLServerCentral apologizes and you can win a book RE: SQLServerCentral apologizes and you can win a book
davidadlington78
SSC Journeyman
Points: 90
More actions
December 5, 2013 at 12:47 am
#1670932
Would love a copy of the book!
SELECT ROW_NUMBER() OVER(ORDER BY SalesYTD DESC) AS Row,
FirstName, LastName, ROUND(SalesYTD,2,1) AS "Sales YTD"
FROM Sales.vSalesPerson
WHERE TerritoryName IS NOT NULL AND SalesYTD <> 0;