diff --git a/warehouse/dbt_project.yml b/warehouse/dbt_project.yml index be4c05713f..74bb12a0c6 100644 --- a/warehouse/dbt_project.yml +++ b/warehouse/dbt_project.yml @@ -69,3 +69,5 @@ models: schema: mart_benefits ntd_validation: schema: mart_ntd_validation + ntd_fct_annual: + schema: mart_ntd_fct_annual diff --git a/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml new file mode 100644 index 0000000000..21dec5a337 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/_mart_ntd_fct_annual.yml @@ -0,0 +1,37 @@ +version: 2 + +models: + - name: fct_ntd_annual_data__breakdowns + - name: fct_ntd_annual_data__breakdowns_by_agency + - name: fct_ntd_annual_data__capital_expenses_by_capital_use + - name: fct_ntd_annual_data__capital_expenses_by_mode + - name: fct_ntd_annual_data__capital_expenses_for_existing_service + - name: fct_ntd_annual_data__capital_expenses_for_expansion_of_service + - name: fct_ntd_annual_data__employees_by_agency + - name: fct_ntd_annual_data__employees_by_mode + - name: fct_ntd_annual_data__employees_by_mode_and_employee_type + - name: fct_ntd_annual_data__fuel_and_energy + - name: fct_ntd_annual_data__fuel_and_energy_by_agency + - name: fct_ntd_annual_data__funding_sources_by_expense_type + - name: fct_ntd_annual_data__funding_sources_directly_generated + - name: fct_ntd_annual_data__funding_sources_federal + - name: fct_ntd_annual_data__funding_sources_local + - name: fct_ntd_annual_data__funding_sources_state + - name: fct_ntd_annual_data__funding_sources_taxes_levied_by_agency + - name: fct_ntd_annual_data__maintenance_facilities + - name: fct_ntd_annual_data__maintenance_facilities_by_agency + - name: fct_ntd_annual_data__metrics + - name: fct_ntd_annual_data__operating_expenses_by_function + - name: fct_ntd_annual_data__operating_expenses_by_function_and_agency + - name: fct_ntd_annual_data__operating_expenses_by_type + - name: fct_ntd_annual_data__operating_expenses_by_type_and_agency + - name: fct_ntd_annual_data__service_by_agency + - name: fct_ntd_annual_data__service_by_mode + - name: fct_ntd_annual_data__service_by_mode_and_time_period + - name: fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type + - name: fct_ntd_annual_data__stations_by_mode_and_age + - name: fct_ntd_annual_data__track_and_roadway_by_agency + - name: fct_ntd_annual_data__track_and_roadway_by_mode + - name: fct_ntd_annual_data__track_and_roadway_guideway_age_distribution + - name: fct_ntd_annual_data__vehicles_age_distribution + - name: fct_ntd_annual_data__vehicles_type_count_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql new file mode 100644 index 0000000000..a860034665 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns.sql @@ -0,0 +1,11 @@ +WITH staging_breakdowns AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__breakdowns') }} +), + +fct_ntd_annual_data__breakdowns AS ( + SELECT * + FROM staging_breakdowns +) + +SELECT * FROM fct_ntd_annual_data__breakdowns diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql new file mode 100644 index 0000000000..ffdf747d28 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__breakdowns_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_breakdowns_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__breakdowns_by_agency') }} +), + +fct_ntd_annual_data__breakdowns_by_agency AS ( + SELECT * + FROM staging_breakdowns_by_agency +) + +SELECT * FROM fct_ntd_annual_data__breakdowns_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql new file mode 100644 index 0000000000..82882ea9f1 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_capital_use.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_by_capital_use AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__capital_expenses_by_capital_use') }} +), + +fct_ntd_annual_data__capital_expenses_by_capital_use AS ( + SELECT * + FROM staging_capital_expenses_by_capital_use +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_by_capital_use diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql new file mode 100644 index 0000000000..96457a6c8b --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_by_mode AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__capital_expenses_by_mode') }} +), + +fct_ntd_annual_data__capital_expenses_by_mode AS ( + SELECT * + FROM staging_capital_expenses_by_mode +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql new file mode 100644 index 0000000000..d219716996 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_existing_service.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_for_existing_service AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__capital_expenses_for_existing_service') }} +), + +fct_ntd_annual_data__capital_expenses_for_existing_service AS ( + SELECT * + FROM staging_capital_expenses_for_existing_service +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_for_existing_service diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql new file mode 100644 index 0000000000..ca2a7b72be --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__capital_expenses_for_expansion_of_service.sql @@ -0,0 +1,11 @@ +WITH staging_capital_expenses_for_expansion_of_service AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__capital_expenses_for_expansion_of_service') }} +), + +fct_ntd_annual_data__capital_expenses_for_expansion_of_service AS ( + SELECT * + FROM staging_capital_expenses_for_expansion_of_service +) + +SELECT * FROM fct_ntd_annual_data__capital_expenses_for_expansion_of_service diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql new file mode 100644 index 0000000000..1b74d3bf79 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_employees_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__employees_by_agency') }} +), + +fct_ntd_annual_data__employees_by_agency AS ( + SELECT * + FROM staging_employees_by_agency +) + +SELECT * FROM fct_ntd_annual_data__employees_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql new file mode 100644 index 0000000000..fac6d6aa76 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_employees_by_mode AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__employees_by_mode') }} +), + +fct_ntd_annual_data__employees_by_mode AS ( + SELECT * + FROM staging_employees_by_mode +) + +SELECT * FROM fct_ntd_annual_data__employees_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql new file mode 100644 index 0000000000..01efa4bcaa --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__employees_by_mode_and_employee_type.sql @@ -0,0 +1,11 @@ +WITH staging_employees_by_mode_and_employee_type AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__employees_by_mode_and_employee_type') }} +), + +fct_ntd_annual_data__employees_by_mode_and_employee_type AS ( + SELECT * + FROM staging_employees_by_mode_and_employee_type +) + +SELECT * FROM fct_ntd_annual_data__employees_by_mode_and_employee_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql new file mode 100644 index 0000000000..fbb795d0ae --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy.sql @@ -0,0 +1,11 @@ +WITH staging_fuel_and_energy AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__fuel_and_energy') }} +), + +fct_ntd_annual_data__fuel_and_energy AS ( + SELECT * + FROM staging_fuel_and_energy +) + +SELECT * FROM fct_ntd_annual_data__fuel_and_energy diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql new file mode 100644 index 0000000000..79f1f6e099 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__fuel_and_energy_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_fuel_and_energy_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__fuel_and_energy_by_agency') }} +), + +fct_ntd_annual_data__fuel_and_energy_by_agency AS ( + SELECT * + FROM staging_fuel_and_energy_by_agency +) + +SELECT * FROM fct_ntd_annual_data__fuel_and_energy_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql new file mode 100644 index 0000000000..0943e513ef --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_by_expense_type.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_by_expense_type AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__funding_sources_by_expense_type') }} +), + +fct_ntd_annual_data__funding_sources_by_expense_type AS ( + SELECT * + FROM staging_funding_sources_by_expense_type +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_by_expense_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql new file mode 100644 index 0000000000..93c704f122 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_directly_generated.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_directly_generated AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__funding_sources_directly_generated') }} +), + +fct_ntd_annual_data__funding_sources_directly_generated AS ( + SELECT * + FROM staging_funding_sources_directly_generated +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_directly_generated diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql new file mode 100644 index 0000000000..26b07b825d --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_federal.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_federal AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__funding_sources_federal') }} +), + +fct_ntd_annual_data__funding_sources_federal AS ( + SELECT * + FROM staging_funding_sources_federal +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_federal diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql new file mode 100644 index 0000000000..fbab02f91e --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_local.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_local AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__funding_sources_local') }} +), + +fct_ntd_annual_data__funding_sources_local AS ( + SELECT * + FROM staging_funding_sources_local +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_local diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql new file mode 100644 index 0000000000..128a3e581c --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_state.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_state AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__funding_sources_state') }} +), + +fct_ntd_annual_data__funding_sources_state AS ( + SELECT * + FROM staging_funding_sources_state +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_state diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql new file mode 100644 index 0000000000..4585ac93f8 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__funding_sources_taxes_levied_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_funding_sources_taxes_levied_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__funding_sources_taxes_levied_by_agency') }} +), + +fct_ntd_annual_data__funding_sources_taxes_levied_by_agency AS ( + SELECT * + FROM staging_funding_sources_taxes_levied_by_agency +) + +SELECT * FROM fct_ntd_annual_data__funding_sources_taxes_levied_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql new file mode 100644 index 0000000000..cba0055eb4 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities.sql @@ -0,0 +1,11 @@ +WITH staging_maintenance_facilities AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__maintenance_facilities') }} +), + +fct_ntd_annual_data__maintenance_facilities AS ( + SELECT * + FROM staging_maintenance_facilities +) + +SELECT * FROM fct_ntd_annual_data__maintenance_facilities diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql new file mode 100644 index 0000000000..bd119a2e74 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__maintenance_facilities_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_maintenance_facilities_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__maintenance_facilities_by_agency') }} +), + +fct_ntd_annual_data__maintenance_facilities_by_agency AS ( + SELECT * + FROM staging_maintenance_facilities_by_agency +) + +SELECT * FROM fct_ntd_annual_data__maintenance_facilities_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql new file mode 100644 index 0000000000..580cddef53 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__metrics.sql @@ -0,0 +1,11 @@ +WITH staging_metrics AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__metrics') }} +), + +fct_ntd_annual_data__metrics AS ( + SELECT * + FROM staging_metrics +) + +SELECT * FROM fct_ntd_annual_data__metrics diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql new file mode 100644 index 0000000000..7966560391 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_function AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_function') }} +), + +fct_ntd_annual_data__operating_expenses_by_function AS ( + SELECT * + FROM staging_operating_expenses_by_function +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_function diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql new file mode 100644 index 0000000000..694367bcbe --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_function_and_agency.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_function_and_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_function_and_agency') }} +), + +fct_ntd_annual_data__operating_expenses_by_function_and_agency AS ( + SELECT * + FROM staging_operating_expenses_by_function_and_agency +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_function_and_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql new file mode 100644 index 0000000000..8a8beb8831 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_type AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_type') }} +), + +fct_ntd_annual_data__operating_expenses_by_type AS ( + SELECT * + FROM staging_operating_expenses_by_type +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql new file mode 100644 index 0000000000..6400320d13 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__operating_expenses_by_type_and_agency.sql @@ -0,0 +1,11 @@ +WITH staging_operating_expenses_by_type_and_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__operating_expenses_by_type_and_agency') }} +), + +fct_ntd_annual_data__operating_expenses_by_type_and_agency AS ( + SELECT * + FROM staging_operating_expenses_by_type_and_agency +) + +SELECT * FROM fct_ntd_annual_data__operating_expenses_by_type_and_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql new file mode 100644 index 0000000000..4de6f4c445 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_service_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__service_by_agency') }} +), + +fct_ntd_annual_data__service_by_agency AS ( + SELECT * + FROM staging_service_by_agency +) + +SELECT * FROM fct_ntd_annual_data__service_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql new file mode 100644 index 0000000000..a1775331a8 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_service_by_mode AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__service_by_mode') }} +), + +fct_ntd_annual_data__service_by_mode AS ( + SELECT * + FROM staging_service_by_mode +) + +SELECT * FROM fct_ntd_annual_data__service_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql new file mode 100644 index 0000000000..bfe4a47d9f --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__service_by_mode_and_time_period.sql @@ -0,0 +1,11 @@ +WITH staging_service_by_mode_and_time_period AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__service_by_mode_and_time_period') }} +), + +fct_ntd_annual_data__service_by_mode_and_time_period AS ( + SELECT * + FROM staging_service_by_mode_and_time_period +) + +SELECT * FROM fct_ntd_annual_data__service_by_mode_and_time_period diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql new file mode 100644 index 0000000000..ec613e72dc --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type.sql @@ -0,0 +1,11 @@ +WITH staging_stations_and_facilities_by_agency_and_facility_type AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type') }} +), + +fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type AS ( + SELECT * + FROM staging_stations_and_facilities_by_agency_and_facility_type +) + +SELECT * FROM fct_ntd_annual_data__stations_and_facilities_by_agency_and_facility_type diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql new file mode 100644 index 0000000000..3c84a410a9 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__stations_by_mode_and_age.sql @@ -0,0 +1,11 @@ +WITH staging_stations_by_mode_and_age AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__stations_by_mode_and_age') }} +), + +fct_ntd_annual_data__stations_by_mode_and_age AS ( + SELECT * + FROM staging_stations_by_mode_and_age +) + +SELECT * FROM fct_ntd_annual_data__stations_by_mode_and_age diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql new file mode 100644 index 0000000000..d1bb760745 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_track_and_roadway_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__track_and_roadway_by_agency') }} +), + +fct_ntd_annual_data__track_and_roadway_by_agency AS ( + SELECT * + FROM staging_track_and_roadway_by_agency +) + +SELECT * FROM fct_ntd_annual_data__track_and_roadway_by_agency diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql new file mode 100644 index 0000000000..2f60b8bfe2 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_by_mode.sql @@ -0,0 +1,11 @@ +WITH staging_track_and_roadway_by_mode AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__track_and_roadway_by_mode') }} +), + +fct_ntd_annual_data__track_and_roadway_by_mode AS ( + SELECT * + FROM staging_track_and_roadway_by_mode +) + +SELECT * FROM fct_ntd_annual_data__track_and_roadway_by_mode diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql new file mode 100644 index 0000000000..5c1a4af5cf --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__track_and_roadway_guideway_age_distribution.sql @@ -0,0 +1,11 @@ +WITH staging_track_and_roadway_guideway_age_distribution AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__track_and_roadway_guideway_age_distribution') }} +), + +fct_ntd_annual_data__track_and_roadway_guideway_age_distribution AS ( + SELECT * + FROM staging_track_and_roadway_guideway_age_distribution +) + +SELECT * FROM fct_ntd_annual_data__track_and_roadway_guideway_age_distribution diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql new file mode 100644 index 0000000000..7af715712f --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_age_distribution.sql @@ -0,0 +1,11 @@ +WITH staging_vehicles_age_distribution AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__vehicles_age_distribution') }} +), + +fct_ntd_annual_data__vehicles_age_distribution AS ( + SELECT * + FROM staging_vehicles_age_distribution +) + +SELECT * FROM fct_ntd_annual_data__vehicles_age_distribution diff --git a/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql new file mode 100644 index 0000000000..dd93cce541 --- /dev/null +++ b/warehouse/models/mart/ntd_fct_annual/fct_ntd_annual_data__vehicles_type_count_by_agency.sql @@ -0,0 +1,11 @@ +WITH staging_vehicles_type_count_by_agency AS ( + SELECT * + FROM {{ ref('stg_ntd_annual_data__vehicles_type_count_by_agency') }} +), + +fct_ntd_annual_data__vehicles_type_count_by_agency AS ( + SELECT * + FROM staging_vehicles_type_count_by_agency +) + +SELECT * FROM fct_ntd_annual_data__vehicles_type_count_by_agency