Microsoft

PL-300 practice question 6

Microsoft Power BI Data Analyst · free question 6 of 20

Question

In Power Query Editor, you have three queries named ProductCategory, ProductSubCategory, and Product. Every Product has a ProductSubCategory. Not every ProductSubCategory has a parent ProductCategory. You need to merge the three queries into a single query. The solution must ensure the best performance in Power Query. How should you merge the tables? Each join kind may be used once, more than once, or not at all.

Explanation

Every product has a subcategory, so an inner join between Product and ProductSubCategory keeps every product and is the cheapest join to evaluate. Not every subcategory has a parent category, so ProductSubCategory must be joined to ProductCategory with a left outer join; an inner join there would drop subcategories without a category and the products in them. Full outer and right joins would add category rows with no products, and anti joins return only non-matching rows.

Need the theory? Learn it free in the PL-300 course on Godlike Academy

Practice the whole free set

Answer all 20 free PL-300 questions with instant feedback, or unlock all 393 questions with Learn and Exam modes.