0
0
dbtdata~5 mins

Creating your first model in dbt - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is a model in dbt?
A model in dbt is a SQL file that contains a SELECT statement. It defines a dataset that dbt will build as a table or view in your data warehouse.
Click to reveal answer
beginner
How do you create your first model in dbt?
To create your first model, write a SQL SELECT query in a .sql file inside the 'models' folder of your dbt project. Then run 'dbt run' to build it in your warehouse.
Click to reveal answer
beginner
What command do you use to build models in dbt?
You use the command 'dbt run' to execute all models and build tables or views in your data warehouse.
Click to reveal answer
beginner
Where do you place your SQL files for models in a dbt project?
You place your SQL model files inside the 'models' directory of your dbt project folder.
Click to reveal answer
beginner
What does dbt do when you run 'dbt run'?
dbt compiles your SQL models, runs the queries against your data warehouse, and creates tables or views based on your model definitions.
Click to reveal answer
What file type do you use to create a model in dbt?
A.sql
B.py
C.txt
D.json
Which command builds your models in dbt?
Adbt build
Bdbt execute
Cdbt start
Ddbt run
Where do you save your model files in a dbt project?
Ascripts folder
Bdata folder
Cmodels folder
Dconfig folder
What does a dbt model contain?
AA SELECT SQL query
BA configuration file
CA Python script
DA JSON schema
What happens when you run 'dbt run'?
Adbt deletes old models
Bdbt compiles and runs models to create tables/views
Cdbt installs dependencies
Ddbt runs tests only
Explain the steps to create and build your first model in dbt.
Think about writing SQL, placing it in the right folder, and running a command.
You got /3 concepts.
    What is the role of the 'models' folder in a dbt project?
    Where do you put your SQL queries for dbt to build?
    You got /3 concepts.