Complete the code to select all columns from the transformed table.
SELECT * FROM [1];The transformed_data table contains the cleaned and modeled data after dbt transformations.
Complete the code to create a new table with dbt using a SELECT statement.
CREATE TABLE [1] AS SELECT * FROM source_data;dbt creates transformed_data tables by applying SQL transformations on source data.
Fix the error in the dbt model SQL by completing the WHERE clause to filter active users.
SELECT * FROM users WHERE status = [1];The status value is a string and must be enclosed in single quotes in SQL.
Fill both blanks to create a dictionary comprehension that maps table names to their row counts, filtering tables with more than 1000 rows.
{table: [1] for table, [2] in table_counts.items() if [1] > 1000}The comprehension uses count as the value and rows as the variable for counts in the loop.
Fill all three blanks to create a dictionary comprehension that maps uppercase table names to their row counts, filtering counts greater than 500.
{ [1]: [2] for [3], count in table_counts.items() if count > 500 }The comprehension maps the uppercase table name (table.upper()) to the count, iterating over table and count.