Jump to content

Summarise results


Pinback
 Share

Recommended Posts

Hi,

I want to summarise my monthly sales results per day (see Attachment).

That's my current code:

SELECT sum FROM tb WHERE year=selected_year AND month=selected_month ORDER BY day ASC

 

But instead of showing each single sale I want to summarise all sales per day and show the total sum.
How can I do this?

THX
Simon

Bildschirmfoto 2018-06-15 um 12.15.26.png

Edited by Pinback
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...