Re: generating the average 6 months spend excluding first orders
В списке pgsql-sql по дате отправления:
| От | Ron256 |
|---|---|
| Тема | Re: generating the average 6 months spend excluding first orders |
| Дата | |
| Msg-id | 1417023477345-5828381.post@n5.nabble.com обсуждение |
| Ответ на | Re: generating the average 6 months spend excluding first orders (Ron256 <ejaluronaldlee@gmail.com>) |
| Ответы |
Re: generating the average 6 months spend excluding first orders
|
| Список | pgsql-sql |
David, Please I need your help on getting the first time buyer. I am using the following query but I am getting incorrect results with cte as (select *, row_number() OVER( partition by persistent_key_str order by ord_submitted_date) RN from orders ) select * from cte where rn = 1 When you use this persistent_key_str = '01000217334' I get incorrect results. How can I resolve this? Thanks, Ron -- View this message in context: http://postgresql.nabble.com/generating-the-average-6-months-spend-excluding-first-orders-tp5828253p5828381.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера