QuestionQ104

VerifiedExecuting queries using Databricks SQL and Databricks SQL Warehouses

A data analyst executes the following command:

SELECT age, country  
FROM my_table  
WHERE age >= 75 AND country = 'canada';  

Which of the following tables shows the output of this command?

Explanation

The WHERE clause retains rows only when both conditions are true: age is 75 or greater and country is canada. Selecting only age and country returns the three matching rows: 80/canada, 75/canada, and 90/canada. Rows containing NULL do not meet these comparisons.

Community Discussion

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