Complete the code to define a dbt model that selects all columns from the source table.
select * from [1]
ref() instead of source() for raw tables.table() or dataset().In dbt, source() is used to refer to raw data tables defined in the sources.yml file.
Complete the code to create a model that references another model named 'customers'.
select * from [1]
source() instead of ref() for models.table().Use ref() to reference other dbt models within your project.
Fix the error in the dbt model code to correctly filter customers with more than 5 orders.
select customer_id, count(order_id) as order_count from [1] group by customer_id having order_count > 5
source() for models instead of ref().table().Use ref() to reference the 'orders' model, which is needed for aggregation.
Fill both blanks to create a dictionary comprehension that maps model names to their descriptions if the description exists.
model_descriptions = {model: [1] for model, [2] in models.items() if description}The comprehension uses description as the value and desc as the variable name for descriptions.
Fill all three blanks to create a filtered dictionary of models with more than 100 rows.
large_models = { [1]: [2] for [3], [2] in models.items() if [2]['row_count'] > 100 }The dictionary comprehension uses model_name as the key and model_info as the value, iterating over model_name, model_info.