Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Ranking in non numeric charater

$
0
0
create Table #T
(i int, j varchar(5))

Insert into #T
Values
(1,'aa'),
(2,'aa'),
(3,'bb'),
(4,'bb'),
(5,'bb'),
(6,'cc'),
(7,'dd'),
(8,'ee'),
(9,'ee'),
(10,'ee')

--desired output :


Viewing all articles
Browse latest Browse all 3145

Trending Articles