sql - problems with group by function -


i'm having little problem. i'm trying date table, error occurs when trying running it. have googlet error end tried som solutions, none of them worked. before adding date select clause, worked fine.

select postal_code, sum(letters), to_char(trunc(start_time),'dd-mm-yyyy') starttime     table_name         group postal_code 

as can see, im trying select date. dont know how make work. i'm new this.

to group postal_code per day:

select postal_code, sum(letters), to_char(start_time,'dd-mm-yyyy') starttime table_name     group postal_code, to_char(start_time,'dd-mm-yyyy') 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -