An analyst wants to keep only reviews that mention a delivery problem, inside a WHERE clause. Which function fits?
- Exam domain
- Cortex AI functions in SQL
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why A is the answer
AI_FILTER
AI_FILTER returns true or false for its input, so it can filter rows in SELECT, WHERE or JOIN clauses.
Remember: Row filter means AI_FILTER.
In detail
- True or false per row.
- Works in WHERE and JOIN.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. AI_FILTERRight
Row filter means AI_FILTER.
B. AI_SUMMARIZE_AGGWrong
AI_SUMMARIZE_AGG summarizes many rows.
C. AI_TRANSLATEWrong
AI_TRANSLATE changes language.
D. AI_REDACT, which removes rows that contain sensitive textWrong
AI_REDACT removes PII from text; it does not filter rows.
Use case
An illustrative scenario, not a real incident.
Illustrative: a logistics team pulls only reviews that complain about late delivery.
See it in different ways
flowchart LR S0["Write the condition as a prompt"] --> S1["AI_FILTER per row"] --> S2["Keep true rows"]
How to read this chart
- Read it in order: Write the condition as a prompt, then AI_FILTER per row, then Keep true rows.
mindmap
root(("Per row"))
n1["Filter"]
n2["AI_FILTER"]
n3["Label"]
n4["AI_CLASSIFY"]
n5["Extract"]
n6["AI_EXTRACT"]How to read this chart
- The centre is "Per row".
- "Filter" covers "AI_FILTER".
- "Label" covers "AI_CLASSIFY".
- "Extract" covers "AI_EXTRACT".