Jump to content

Summarise results

Recommended Posts


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?


Bildschirmfoto 2018-06-15 um 12.15.26.png

Edited by Pinback
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...