I have a db with a column that has a list as a data. So something like this.
-1,121 ( I want 121
-1,121,1223 1223
-1,121,1 1)
I want the the last number from the list? Is there like a ListLast function in SQL? I am using SQL Server 2000.
I tried doing something like this, but kinda didnt work.
SELECT RIGHT(list,(CHARINDEX(',', list)))
from table
Any help will be appreciated.
-1,121 ( I want 121
-1,121,1223 1223
-1,121,1 1)
I want the the last number from the list? Is there like a ListLast function in SQL? I am using SQL Server 2000.
I tried doing something like this, but kinda didnt work.
SELECT RIGHT(list,(CHARINDEX(',', list)))
from table
Any help will be appreciated.