So I have the table as you can see in the screenshot below, and I want to do a group by to the values of every month for every group. The problem is that I have different time stamps.. and this column is very necessary. Is there any way to:
- avoid adding in the group by statement? or
- change the day in the time stamp so all will be like the first day of the month? or
- extract the quarter from the time stamp and then try to use in in the group by?
The code I am using:
Select Name, Central, Group, Timestamp, Extract (year from Timestamp) as Year, Extract (month from Timestamp) From Table1 Group BY Name, Central, Group, Timestamp
I can't remove Timestamp from the Group BY .. and adding Year and Month to the group by doesn't change any thing


GROUP BYat the month level would remove the timestamp detail. Your question is not clear. You need sample data and desired results.