Answers for "group by date in sql"

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

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