Hi,@Learner Welcome to Microsoft T-SQL Q&A Forum!
Please Try this:
create table #test
(
column1 int ,
TrendType varchar(20)
)
insert into #test values(1,'yearly' ),
(2,'Monthly' ),(3,'Monthly') ,(4,'Quarterly') ,(5,'Monthly' )
select column1,
case when TrendType = 'Monthly' then 'Quarterly' else TrendType end TrendType
from #test
Best regards, Bert Zhou
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.