Quantcast
Channel: Rank function
Browsing all 4 articles
Browse latest View live

Rank function

thank you Tom and Rajiv. sure will post the sample table next time!

View Article



Rank function

One way, works on SQL 2012 or later onlyDeclare @Sample Table(Center varchar(20), period_wot date); Insert @Sample(Center, period_wot) Values ('Bill', '20160101'), ('Bill', '20160105'), ('Tom',...

View Article

Rank function

DECLARE @tbl AS TABLE (Vendor VARCHAR(34) , Center VARCHAR(34) , Period_Wot DATETIME) INSERT INTO @tbl ( Vendor, Center, Period_Wot ) SELECT 'Sutherland' as Vendor , 'Davao' AS Center , '2016-06-23' as...

View Article

Image may be NSFW.
Clik here to view.

Rank function

Hello all, is there function or a way to rank the below dataet ? i am not sure if first_value, lead or any other function that can achieve ? the only unique record is the column "period_wot"  . the...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images