Home > Software design >  Group by the specific day, month, and year
Group by the specific day, month, and year

Time:02-25

I have a table as follow, now I use the group by date and it only group my data based on the year. I want to group the data based on the specific day, month, and year.

Do you know how we can do that?

enter image description here

CodePudding user response:

Use:

group by  day(`date`),month(`date`),year(`date`)

Check for more info

  • Related