Answers for "group by year postgresql"

SQL
2

postgresql group by month and year

date_trunc('month', col_date)
Posted by: Guest on January-21-2021
0

GROUP BY postgres

SELECT 
   column_1, 
   column_2,
   ...,
   aggregate_function(column_3)
FROM 
   table_name
GROUP BY 
   column_1,
   column_2,
   ...;
Code language: SQL (Structured Query Language) (sql)
Posted by: Guest on July-28-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language