Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: SQLServerCentral apologizes and you can win a book

    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

  • RE: Data Validation

    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...

Viewing 2 posts - 1 through 2 (of 2 total)