I have a record in a single column.Like below
Address
Arulraj | Guindy | Chennai | TamilNaadu | India | 600042 | | 10000001
Adaiakalm | Chenanai | Chen
Try this if you are using Sql Server 2012+
DECLARE @str VARCHAR(1000)='Adaiakalm | Chenanai | Chennai | TamilNaadu | India | 600042 | | 10000001',
@sql NVARCHAR(max),
@index INT=3
SET @str = '''' + Replace(@str, '|', ''',''') + ''''
SET @sql= 'select choose('+ CONVERT(VARCHAR(10), @index) + ', ' + @str + ')'
EXEC Sp_executesql @sql