Skip to content

Commit

Permalink
#68, #66 Update centreline monthly function with date cast to mth
Browse files Browse the repository at this point in the history
  • Loading branch information
chmnata committed Oct 28, 2022
1 parent a5eeb60 commit 17ca2c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ AS $BODY$
HAVING sum(length_w_data) >= (cent_length * 0.8))

SELECT uid,
date_trunc('month', a.dt) AS mth,
date_trunc('month', a.dt)::date AS mth,
hr,
CASE WHEN extract(isodow from dt) <6 then 'Weekday'
ELSE 'Weekend' END AS day_type,
Expand Down

0 comments on commit 17ca2c2

Please sign in to comment.