SQL: How to replace one with two? 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.



select id,freq,parity,line,type,gain,obdim from [first] where type&lt&gt'MM'
union
select id,freq,parity,line,'HH' as type,gain,obdim from [first] where type='MM'
union
select id,freq,parity,line,'VV' as type,gain,obdim from [first] where type='MM'



select id,frequency, 'VV' type --, .. 
from table1
where type='MM'
union all
select id,frequency, 'HH' as type --, .. 
from table1
where type='MM'


This solution is probably very specific in the sense that it implies that the type column can only have values HH, MM, or VV.
SELECT
  f.ID,
  f.freq,
  f.parity,
  f.line,
  t.type,
  f.gain,
  f.obdim
FROM [first] f
  INNER JOIN (
    SELECT 'HH' AS type
    UNION ALL
    SELECT 'VV'
  ) t ON f.type IN (t.type, 'MM')