This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In which of the following table types should an insurance company store details of customer attributes by which claims will be aggregated?
Staging table
Dimension table
Fact table
You create a dimension table for product data, assigning a unique numeric key for each row in a column named ProductKey. The ProductKey is only defined in the data warehouse. What kind of key is ProductKey?
ProductKey
A surrogate key
An alternate key
A business key
What distribution option would be best for a sales fact table that will contain billions of records?
HASH
ROUND_ROBIN
REPLICATE
You need to write a query to return the total of the UnitsProduced numeric measure in the FactProduction table aggregated by the ProductName attribute in the FactProduct table. Both tables include a ProductKey surrogate key field. What should you do?
UnitsProduced
FactProduction
ProductName
FactProduct
Use two SELECT queries with a UNION ALL clause to combine the rows in the FactProduction table with those in the FactProduct table.
SELECT
UNION ALL
Use a SELECT query against the FactProduction table with a WHERE clause to filter out rows with a ProductKey that doesn't exist in the FactProduct table.
WHERE
Use a SELECT query with a SUM function to total the UnitsProduced metric, using a JOIN on the ProductKey surrogate key to match the FactProduction records to the FactProduct records and a GROUP BY clause to aggregate by ProductName.
SUM
JOIN
GROUP BY
You use the RANK function in a query to rank customers in order of the number of purchases they have made. Five customers have made the same number of purchases and are all ranked equally as 1. What rank will the customer with the next highest number of purchases be assigned?
RANK
Two
Six
One
You need to compare approximate production volumes by product while optimizing query response time. Which function should you use?
COUNT
NTILE
APPROX_COUNT_DISTINCT
You must answer all questions before checking your work.
Was this page helpful?