0
0
dbtdata~10 mins

Column descriptions in dbt - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a description to the column customer_id in a dbt model.

dbt
columns:
  - name: customer_id
    description: "[1]"
Drag options to blanks, or click blank then click option'
ANumber of items purchased
BThe total sales amount
CDate of the transaction
DUnique identifier for each customer
Attempts:
3 left
💡 Hint
Common Mistakes
Using a description that does not match the column name
Leaving the description empty
2fill in blank
medium

Complete the code to add a description for the order_date column in a dbt model.

dbt
columns:
  - name: order_date
    description: "[1]"
Drag options to blanks, or click blank then click option'
ANumber of products in the order
BDate when the order was placed
CTotal price of the order
DCustomer's unique ID
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing order_date with customer ID or price
Writing a vague description
3fill in blank
hard

Fix the error in the column description for total_amount by selecting the correct description.

dbt
columns:
  - name: total_amount
    description: "[1]"
Drag options to blanks, or click blank then click option'
ATotal amount of the order in USD
BDate of the transaction
CUnique customer identifier
DNumber of items sold
Attempts:
3 left
💡 Hint
Common Mistakes
Using descriptions related to date or customer ID
Not specifying the currency or total nature
4fill in blank
hard

Fill both blanks to add descriptions for product_id and quantity columns in a dbt model.

dbt
columns:
  - name: product_id
    description: "[1]"
  - name: quantity
    description: "[2]"
Drag options to blanks, or click blank then click option'
AUnique identifier for each product
BNumber of units ordered
CDate when the product was added
DPrice per unit of the product
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up descriptions between product and quantity
Using unrelated descriptions
5fill in blank
hard

Fill all three blanks to add descriptions for user_id, signup_date, and is_active columns in a dbt model.

dbt
columns:
  - name: user_id
    description: "[1]"
  - name: signup_date
    description: "[2]"
  - name: is_active
    description: "[3]"
Drag options to blanks, or click blank then click option'
AUnique identifier for each user
BDate when the user signed up
CIndicates if the user account is active
DTotal number of user logins
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing is_active with login counts
Using vague or incorrect descriptions