*group by* on full table(*users*). I am away from our production DB. Could you tell me how this little change will solve the whole problem and help me to get the data as per the format I am looking for.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных