Answers for "sql group by date"

SQL
4

sql group by year

SELECT value1, extract(YEAR FROM my_date)
FROM my_table
GROUP BY value1, extract(YEAR FROM my_date);
Posted by: Guest on May-02-2021
0

mysql group by date

SELECT SUM(foo), DATE(mydate) FROM a_table GROUP BY DATE(a_table.mydate);
Posted by: Guest on July-09-2020
0

How can I group by date time column without taking time into consideration

GROUP BY CAST(myDateTime AS DATE)
Posted by: Guest on November-20-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language