), VALUE )) INSERT INTO # VALUES (,,'), (,,'), (,,'), (,,'), (,,'), (,,'), (,,') SELECT code,MIN(name) AS name1,MIN(CAST(REPLACE(value,' ','') AS INT)) AS value1, THEN NULL ELSE MAX(name) END AS name2, THEN NULL ELSE MAX(CAST(REPLACE(value,' ','') AS