You have a Microsoft Azure SQL data warehouse that has a fact table named FactOrder. FactOrder contains three columns na

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

You have a Microsoft Azure SQL data warehouse that has a fact table named FactOrder. FactOrder contains three columns na

Post by answerhappygod »

You have a Microsoft Azure SQL data warehouse that has a fact table named FactOrder. FactOrder contains three columns named CustomerID, OrderID, andOrderDateKey. FactOrder is hash distributed on CustomerID. OrderID is the unique identifier for FactOrder. FactOrder contains 3 million rows.Orders are distributed evenly among different customers from a table named dimCustomers that contains 2 million rows.You often run queries that join FactOrder and dimCustomers by selecting and grouping by the OrderDateKey column.You add 7 million rows to FactOrder. Most of the new records have a more recent OrderDateKey value than the previous records.You need to reduce the execution time of queries that group on OrderDateKey and that join dimCustomers and FactOrder.What should you do?

A. Change the distribution for the FactOrder table to round robin
B. Change the distribution for the FactOrder table to be based on OrderID
C. Update the statistics for the OrderDateKey column
D. Change the distribution for the dimCustomers table to OrderDateKey
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply