Skip to content

Commit

Permalink
Add date to trip stats output
Browse files Browse the repository at this point in the history
alexpetros committed Jul 12, 2023
1 parent 56713ae commit d42cb94
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -5,7 +5,12 @@ with trip_stats as (
from trip_members
group by trip
)
select title, member_count, clubs.name as club
select
trips.id,
title,
member_count,
clubs.name as club,
date(start_time / 1000, 'unixepoch') as date
from trips
left join clubs on trips.club = clubs.id
left join trip_stats on trips.id = trip_stats.trip

0 comments on commit d42cb94

Please sign in to comment.