QuestionQ237

VerifiedEnsuring Data Security and Compliance

A table named user_ltv is used to create a view for data analysts across various teams. Workspace users are organized into groups, which are used to configure data access through ACLs.

The user_ltv table has the following schema:

email STRING, age INT, ltv INT

The following view definition is executed:

Question Image

An analyst who is not a member of the auditing group runs the following query:

SELECT * FROM user_ltv_no_minors  

Which statement describes the results returned by this query?

Explanation

For a user who is not a member of auditing, the CASE expression in the WHERE clause evaluates to age >= 18. A WHERE condition retains only rows for which that condition is true, while the selected email, age, and ltv values remain unchanged. Because age is an integer, age >= 18 is equivalent to an age greater than 17. Databricks dynamic views can use group-membership functions and a CASE expression to apply row-level filtering.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!