SQL Odłącz wiele kolumn Dane

Używam serwera SQL 2008 i próbuję usunąć dane. Oto kod SQL, którego używam,

CREATE TABLE #pvt1 (VendorID int, Sa int, Emp1 int,Sa1 int,Emp2 int)
GO
INSERT INTO #pvt1  VALUES (1,2,4,3,9);

GO

--Unpivot the table.
SELECT distinct VendorID,Orders,Orders1
FROM 
   (SELECT VendorID, Emp1, Sa,Emp2,Sa1
   FROM #pvt1 ) p
UNPIVOT
   (Orders FOR Emp IN 
      (Emp1,Emp2)
)AS unpvt
UNPIVOT
   (Orders1 FOR Emp1 IN 
      (Sa,Sa1)
)AS unpvt1;
GO

A oto wynik powyższego kodu.

VendorID    Orders  Orders1
1            4      2
1            4      3
1            9      2
1            9      3

Ale chcę, aby moje dane wyjściowe były wskazane poniżej

VendorID    Orders  Orders1
1           4       2
1           9       3

Związek z powyższego kodu wynosi 2 i odnosi się do 4, a 3 do 9.

Jak mogę to osiągnąć?

questionAnswers(1)

yourAnswerToTheQuestion