Forum Replies Created

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

  • RE: The Potential of Joins

    I had the same thought as you but I think you would want to use row_number not rank. Here is a good example of the difference between rank, and...

  • RE: The Potential of Joins

    Thinking of the aggregate query.. curious if efficiencies could be gained using a WITH Statement or temp table and joining.

    With Statement:

    With S as (select ProductID,SalesOrderID,SUM(OrderQty) AS OrderQty FROM Sales.SalesOrderDetail GROUP...

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