I have a table “first”:

I am trying to write a query.
If first.type = 'MM'
then replace this line in two new lines
where first.type = 'HH' and first.type = 'VV'.
For example : The line where first.type = ‘MM’:

I want to replace this line like that:

And the result:

Does someone have an idea on how this can be done?
I’m using MS SQL Server Management Studio Express.
1 Answer