Hi, You can use the construct Case When but You have to have Your information structured (even if only in Your mind) in order to achive the results You want. So, suposse You have for the color Blue the letter A, for the color Red the letter D, for the color Green the letter B and finally for the color Orange the letter C. For the following data: create table dcosta.colors (id numeric(3), Color varchar(12)); insert into dcosta.colors values(1, 'Blue'); insert into dcosta.colors values(2, 'Red'); insert into dcosta.colors values(3, 'Green'); insert into dcosta.colors values(4, 'Orange'); You can use the following instruction: SELECT ID, Color, CASE WHEN color = 'Blue' THEN 'A' WHEN color = 'Red' THEN 'D' WHEN color = 'Green' THEN 'B' WHEN color = 'Orange' THEN 'C' ELSE 'other' END FROM dcosta.colors; Obviously You can ommit the column Color from the select clause. Hope I helped Dias Costa George Handin wrote: Richard Broersma Jr wrote: |