Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.
Actual exam question for Databricks's Databricks-Certified-Data-Analyst-Associate exam Question #: 45 Topic #: 2
A data analyst has been asked to use the below table sales_table to rank products within region by the sales. Input table: region product sales WEST A 1880.59 EAST A 2045.99 EAST B 4583.23 WEST B 3391.19 The result of the query should look like this: region product rank EAST B 1 EAST A 2 WEST B 1 WEST A 2 Which query will accomplish this task?
Option D is correct. The phrase "rank products within region by the sales" means each region must be ranked separately, so the window must use PARTITION BY region. The ranking must be based on highest sales first, so the window must use ORDER BY sales DESC. Option A ranks across all regions together. Option B ranks within product, not within region. Option C does not specify the sales ordering. Official Databricks extract: rank() "returns the rank of a value compared to all values in the partition," and its OVER clause must include ORDER BY.
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.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).