Databricks Certified Data Analyst Associate Exam - Topic 1 Question 58 Discussion
A data analyst filters rows where the tags array includes the value 'sql' using this query:SELECT *
FROM main.analytics.articles
WHERE tags = 'sql';This query returns no results.How should the analyst query to filter for rows where the tags array contains 'sql'?
D) SELECT * FROM main.analytics.articles WHERE array_contains(tags, 'sql');
A) SELECT * FROM main.analytics.articles WHERE tags IN ('sql');
B) SELECT * FROM main.analytics.articles WHERE tags LIKE '%sql%';
C) SELECT * FROM main.analytics.articles WHERE 'sql' IN tags;
Currently there are no comments in this discussion, be the first to comment!