"dbt’s only function is to take code, compile it to SQL, and then run against your database" - documentation
- Every model (model: a data transformation, expressed as a single
SELECTstatement)
Data warehouse vs data warehouse server
- The end use case should define the grain
SELECT
<Column_1>,
<Column_2>,
<Column_3>,
<Column_4>,
SUM( <Column_5> ),
FROM <table_A>
WHERE
<<Column_1> condition> AND
<<Column_2> condition>
GROUP BY
<Column_3>,
<Column_4>;
- ( 2022-08-26 ): Should the grain be consistent across all fact tables? Is there value in having different grain levels depending on the use case?