70-463 · Question #10
You are developing a data flow transformation to merge two data sources. One source contains product data and the other source contains data about the country in which the product was manufactured…
The correct answer is C. Set the appropriate SortKeyPosition properties on the data sources. D. Set the IsSorted property on both data sources. This question tests the prerequisite configuration required for the SSIS Merge Join transformation to function correctly - it requires SSIS to be explicitly told that its inputs are sorted.
Question
You are developing a data flow transformation to merge two data sources. One source contains product data and the other source contains data about the country in which the product was manufactured. Both data sources contain a two-character CountryCode column and both use SQL Server. Both data sources contain an ORDER BY clause to sort the data by the CountryCode column in ascending order. You use a Merge Join transformation to join the data. You need to ensure that the Merge Join transformation works correctly without additional transformations. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
Exhibit
Options
- AChange the ORDER BY clause on the product source to order by ProductName.
- BChange the Merge Join transformation to a Merge transformation.
- CSet the appropriate SortKeyPosition properties on the data sources.
- DSet the IsSorted property on both data sources.
How the community answered
(39 responses)- A13% (5)
- B8% (3)
- C79% (31)
Why each option
This question tests the prerequisite configuration required for the SSIS Merge Join transformation to function correctly - it requires SSIS to be explicitly told that its inputs are sorted.
Changing the ORDER BY to ProductName would remove the CountryCode sort that the Merge Join requires for the join key, breaking the transformation entirely.
The Merge transformation concatenates two sorted streams into one without performing a key-based join; it does not provide the lookup/join semantics the scenario requires.
SortKeyPosition must be set on each output column that participates in the sort to indicate the sort order and position, which tells SSIS how the data is ordered for the join.
Setting IsSorted to True on the data source output informs SSIS that the upstream data is already sorted, which is required for Merge Join to accept the input without inserting a Sort transformation.
Concept tested: SSIS Merge Join IsSorted and SortKeyPosition metadata configuration
Source: https://learn.microsoft.com/en-us/sql/integration-services/data-flow/transformations/merge-join-transformation
Topics
Community Discussion
No community discussion yet for this question.
