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
Post a Comment