Skip to content

Instantly share code, notes, and snippets.

@puppe1990
Created June 5, 2020 23:06
Show Gist options
  • Save puppe1990/4478dae3ed1e434e77b1c6ab01fd117b to your computer and use it in GitHub Desktop.
Save puppe1990/4478dae3ed1e434e77b1c6ab01fd117b to your computer and use it in GitHub Desktop.
select to_char(os.order_date,'YYYY-MM-DD'), sum(value)
from order_stores os
group by to_char(os.order_date,'YYYY-MM-DD')
order by to_char(os.order_date,'YYYY-MM-DD') asc ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment