1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
create function dbo.GetText(@key decimal(20,4) ) returns varchar(2000) as return ( select case @key when 13.00 THEN 'TRECE' when 13.01 THEN 'TRECE PUNTO CERO UNO' when 13.02 THEN 'TRECE PUNTO CERO DOS' --- etc etc -- else 'unknown' end )