| От | Paul Jungwirth |
|---|---|
| Тема | Re: Average New Users Per DOW |
| Дата | |
| Msg-id | 559AC1B4.3040501@illuminatedcomputing.com обсуждение исходный текст |
| Ответ на | Average New Users Per DOW (Robert DiFalco <robert.difalco@gmail.com>) |
| Ответы |
Re: Average New Users Per DOW
|
| Список | pgsql-general |
> I'm not sure how to create a result where I get the average number of > new users per day of the week. My issues are that days that did not > have any new users will not be factored into the average This is a pretty common problem with time-series queries when there is sparse data. My go-to solution is to use generate_series---in your case from 0 to 6---then do a left join from there to your actual data. Paul
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера