| От | Mario Splivalo |
|---|---|
| Тема | Re: Get the max viewd product_id for user_id |
| Дата | |
| Msg-id | 4CFBC4DB.90101@megafon.hr обсуждение исходный текст |
| Ответ на | Re: Get the max viewd product_id for user_id (Mario Splivalo <mario.splivalo@megafon.hr>) |
| Ответы |
Re: Get the max viewd product_id for user_id
|
| Список | pgsql-sql |
On 12/05/2010 05:57 PM, Mario Splivalo wrote: > The issue in both approaches is that if I have two product_ids that are > viewed same number of times and share the first place as most viewed > products by that user, I'll get only one of them (LIMIT 1 OR MAX() can > only return one row :). > And then, to jump again into my own mouth - your approach, Jayadevan, correctly gives me both product_id's if they're viewed the same number of times. Mario
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера