Quantcast
Channel: I need help with Rank
Browsing latest articles
Browse All 6 View Live

I need help with Rank

No, I meant you use 2 ctes like this:;with cte1 as (select *, SUM(qty) over (partition by CustomerId) as TotalCustomerQty from myTable),cte2 as (select *, DENSE_RANK() over (ORDER BY TotalCustomerQty...

View Article



I need help with Rank

Its not letting me post the whole code with rank.. Let me try your idea.. if I use 2 ctes Do i need do a join as well?

View Article

I need help with Rank

I don't see RANK in your query at all and I think you may want to DROP distinct from the query if you need to select top 10 Shipments per customer.You may need to use DENSE_RANK, so the main idea...

View Article

I need help with Rank

I apoligize I acually had all the question typed in as well, Not sure what happened............ Again my Apologies..!!!!Basically What I am trying to find is top10 Shipments for Customers By...

View Article

I need help with Rank

What is the question, problem, or issue?It is not polite to post your code without an explanation of the problem and what is it that you want to accomplish.AMB Some guidelines for posting questions...

View Article


I need help with Rank

alter proc Sp_Summary_of_Top10_Shipments_By_Quantity (@BegDate datetime,@EndDate datetime,@Product varchar(max)) as select distinct T1. C01_CMM_S , T1. c01_GROSS_DATE_T_AS_A_DATE , T1....

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images