
Ultimate access to all questions.
A data analyst working with Databricks SQL has developed a query to analyze various key metrics for an e-commerce business on a monthly basis. These metrics include the number of orders, repeat customers, total revenue, and profit across different geographical regions. The analyst aims to dynamically view results for specific states based on selection. What is the most efficient method to achieve this?
A
Manually input the state value in the query's WHERE clause each time to fetch the corresponding data.
B
Develop a SQL UDF that accepts the state as a parameter at runtime to retrieve data for the specified state.
C
Implement a dropdown list with a single-value select option as a query parameter, allowing the selection of any state to dynamically substitute into the query at runtime.
D
Create a separate view for each state and query the relevant view directly for the desired state's data.
E
Dynamic filtering of data at runtime is not feasible in Databricks.