exam questions

Exam 70-767 All Questions

View all questions & answers for the 70-767 exam

Exam 70-767 topic 1 question 98 discussion

Actual exam question from Microsoft's 70-767
Question #: 98
Topic #: 1
[All 70-767 Questions]

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
You are developing a Microsoft SQL Server Integration Services (SSIS) package. The package design consists of two differently structured sources in a single data flow. The Sales source retrieves sales transactions from a SQL Server database, and the Product source retrieves product details from an XML file.
You need to combine the two data flow sources into a single output dataset.
Which SSIS Toolbox item should you use?

  • A. CDC Control task
  • B. CDC Splitter
  • C. Union All
  • D. XML task
  • E. Fuzzy Grouping
  • F. Merge
  • G. Merge Join
Show Suggested Answer Hide Answer
Suggested Answer: G 🗳️
The Merge Join transformation provides an output that is generated by joining two sorted datasets using a FULL, LEFT, or INNER join. For example, you can use a LEFT join to join a table that includes product information with a table that lists the country/region in which a product was manufactured. The result is a table that lists all products and their country/region of origin.
References:
https://docs.microsoft.com/en-us/sql/integration-services/data-flow/transformations/merge-join-transformation

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
JHJHJHJHJ
4 years, 3 months ago
Union all or Union is wrong as they are two different structures - Merge is out too as it is not a Ssis Component - Hence its Merge Join as nothing is mentioned about being sorted or unsorted.
upvoted 1 times
...
DudeHere
4 years, 5 months ago
Merge Join, due to the 2 data sources: " Merge Join is same as JOIN in t-sql, you can choose between different types of Inner join, left outer join and outer join the difference is that with Merge join transformation you can support two inputs from two different data source, for example one from flat file and another from oracle DB, but with join in t-sql you can only join from one data source." https://stackoverflow.com/questions/46664399/ssis-difference-between-merge-and-merge-join
upvoted 2 times
...
Cococo
4 years, 7 months ago
It is a Merge Join, here is the detailed example - https://www.red-gate.com/simple-talk/sql/ssis/ssis-basics-using-the-merge-join-transformation/
upvoted 2 times
...
Patterns
4 years, 7 months ago
Use can't use Merge or Union when you have Data with different structures. Columns structure needs to align. I guess Merge Join still works
upvoted 2 times
...
Anette
4 years, 8 months ago
From the options we can judge between Union All, Merge and Merge Join. ..."The Merge transformation is similar to the Union All transformations. Use the Union All transformation instead of the Merge transformation in the following situations: The transformation inputs are not sorted. The combined output does not need to be sorted. The transformation has more than two inputs."... link: https://simplebiinsights.com/ssis-difference-between-merge-and-merge-join/#:~:text=Merge%20Join%20transformation%20merge%20the,or%20LEFT%20or%20INNER%20JOIN.&text=Merge%20Join%20Transformation%20requires%20sorted,joined%20columns%20have%20matching%20metadata. We don't know if our inputs are sorted but we know that we have two different structured sources and in this situation we cannot use Union All, so the best answer is to use Merge or Merge Join. I would choose Merge since it is more similar to Union All and also in its definition: "Merge data from two data sources, such as tables and files", which is our case. So, answer: F
upvoted 3 times
...
artchilix
5 years, 3 months ago
C. Union All The Union All transformation combines multiple inputs into one output. For example, the outputs from five different Flat File sources can be inputs to the Union All transformation and combined into one output. https://docs.microsoft.com/en-us/sql/integration-services/data-flow/transformations/union-all-transformation?view=sql-server-ver15
upvoted 4 times
mohroshdy
5 years, 2 months ago
Two differently structured sources can't be using Union all. Sales table and Products table can't be union, it should be merge join as Products is a lookup table
upvoted 14 times
Czar
5 years ago
I'll take your point a step further, mohroshdy. Merge join expects the inputs to be joined. Nowhere in the description does it say that the sources are sorted. Therefore, I chose merge.
upvoted 1 times
Lex_P
5 years ago
Merge expects your input to be sorted as well
upvoted 1 times
...
Anette
4 years, 8 months ago
Both Merge and Merge Join require that Inputs have their data sorted, so you cannot judge on this.
upvoted 1 times
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago