Complete the code to select all columns from the source table in a dbt model.
select * from [1]
In dbt, to refer to a source table, you use the source() function with the source name and table name.
Complete the code to create a dbt model that selects only active users from the source table.
select * from [1] where status = 'active'
To refer to the source table users in the app source, use source('app', 'users').
Fix the error in the dbt model code to correctly reference the source table.
select id, name from [1] where active = true
The source() function is used to reference source tables in dbt, not ref() or others.
Fill both blanks to create a dbt model that selects user id and email from the source table where email is not null.
select [1], [2] from source('app', 'users') where email is not null
The model selects id and email columns from the source table.
Fill all three blanks to create a dbt model that selects product id, name, and price from the source table where price is greater than 100.
select [1], [2], [3] from source('inventory', 'products') where price > 100
The model selects product_id, name, and price columns to filter products priced above 100.