I have letter \"a\", \"b\", \"c\". I would like my results to be \"b\", \"c\", \"d\" in TSQL respectively. Would what I use to achieve this?
DECLARE @Letters AS TABLE
(
Letter CHAR(1)
)
INSERT INTO @Letters
( Letter )
VALUES ( 'A' )
INSERT INTO @Letters
( Letter )
VALUES ( 'B' )
INSERT INTO @Letters
( Letter )
VALUES ( 'C' )
SELECT CHAR(ASCII(Letter) + 1) FROM @Letters
Example using a table variable in SQL but any of the above will do it for you. Dependant on what method your using to collate the list of letters obviously.