dbt - Jinja in dbt
You want to create a new column
risk_level in a dbt model based on score: 'high' if score > 80, 'medium' if score between 50 and 80, and 'low' otherwise. Which SQL snippet correctly implements this?