Here's another way
DECLARE @MyTable TABLE
(
ID INT,
RowNumber INT,
RowText NVARCHAR(20)
)
INSERT INTO @MyTable
SELECT 12, 1, 'ABC-' UNION
SELECT 12, 2, 'XYZ' UNION
SELECT 12, 3, 'DEF' UNION
SELECT 13, 1, 'ABC' UNION
SELECT 13, 2, 'DEF' UNION
SELECT...