Viewing 2 posts - 1 through 2 (of 2 total)
Ranks CustomerID and Sales Order number by Total due (Using the AdventureWorks2012 database):
select
h.CustomerID,
h.SalesOrderNumber,
h.TotalDue,
rank() over (order by h.TotalDue desc) as TotalRank
from Sales.SalesOrderHeader h
December 5, 2013 at 9:29 am
#1671193
So to clear things up I have a param @mgrFlag that captures the permission from the app.
Orginailly I had this:
If not exists(select 1 from EmployeeAssocTable where EmployeeID = @EnteredForEmpID and...
April 3, 2008 at 10:55 am
#797959