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 ArticleRank 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 ArticleRank 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
More Pages to Explore .....