Re: Q: select query

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Q: select query
Дата
Msg-id 1063477035.66715.7.camel@jester
обсуждение исходный текст
Ответ на Q: select query  (grk@usa.net (G. Ralph Kuntz, MD))
Список pgsql-sql
> in other words, all but the first row of a group.

Interesting question. The below should work and be quick so long as
there is a UNIQUE(col1, col2) constraint.

SELECT col1    , col2 FROM jWHERE col2 != (SELECT col2                 FROM j AS jsub                WHERE col1 =
j.col1            ORDER BY col2 ASC                LIMIT 1); 

В списке pgsql-sql по дате отправления:

Предыдущее
От: chester c young
Дата:
Сообщение: production parameters
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: Q: select query