Re: Select question..... is there a way to do this?

Поиск
Список
Период
Сортировка
Искать
От
Rodrigo De León
Тема
Re: Select question..... is there a way to do this?
Дата
Msg-id
1186207688.409763.261840@k79g2000hse.googlegroups.com
Ответ на
Список
Дерево обсуждения
Select question..... is there a way to do this? Karl Denninger <karl@denninger.net>
Re: Select question..... is there a way to do this? Rodrigo De León <rdeleonp@gmail.com>
On Aug 3, 11:17 pm, k...@denninger.net (Karl Denninger) wrote:
> Ideas?

SELECT item.user, item.subject, item.number
  FROM item, seen
 WHERE item.user = seen.user
   AND item.number = seen.number
   AND item.changed > seen.lastviewed
UNION
SELECT item.user, item.subject, item.number
  FROM item, seen
 WHERE item.user = seen.user
   AND seen.number IS NULL
   AND item.changed > seen.lastviewed;

В списке pgsql-general по дате отправления
От: Karl Denninger
Дата:
От: cluster
Дата:
FAQ