Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- https://pgexercises.com/questions/date/bookingspermonth.html
- -- again, date_trunc works, date_part does not
- -- not surprisingly, as they solve different problems
- select date_trunc('month',starttime) as month,
- count(starttime)
- from cd.bookings
- group by 1
- order by 1 asc
Advertisement
Add Comment
Please, Sign In to add comment