Skip to content

Commit

Permalink
created table for fct_observed_trips_summaries (analyst POC table from
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-costanzo committed Mar 27, 2023
1 parent 25a0729 commit eddd39e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions warehouse/models/mart/ad_hoc/fct_observed_trips_summaries.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ config(materialized='table') }}

WITH fct_observed_trips AS (
SELECT * FROM {{ ref('fct_observed_trips') }}
),

fct_observed_trips_summaries AS (

SELECT *

gtfs_dataset_key,
name,
trip_id,
activity_date,

tu_num_distinct_message_ids,
tu_min_extract_ts,
tu_max_extract_ts,

time_of_day

FROM fct_observed_trips
--GROUP BY BY 1,2,3,4

)

SELECT * FROM fct_observed_trips_summaries

0 comments on commit eddd39e

Please sign in to comment.