if type='a'
begin
if color='r'
begin
select column_one as [column one] from Tablename
end
else if color='b'
begin
select column_two as [column two] from Tablename
end
else if color='g'
Begin
select column_three as [column three] from tablename
end
end
How to make this into single sql statement