Is there a possibility to obtain letters (like A,B) instead of numbers (1,2) e.g. as a result of Dense_Rank function call(in MS Sql) ?
I used this as a basis for my function to convert integers to base26 character strings
DECLARE @Input integer = 3000
DECLARE @Value integer
DECLARE @Quotient integer = 0
DECLARE @Remainder integer = 0
DECLARE @Output varchar(max) = ''
DECLARE @BASE char(26) = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
SET @Value = @Input
WHILE @Value > 0 BEGIN
SET @Quotient = @Value / 26
SET @Remainder = @Value % 26
SET @Output = substring(@BASE,@Remainder,1) + @Output
SELECT @Value = @Quotient
END
SELECT @Output --- DKJ