Re: Selecting All Columns Associated With Maximum Value of One Column

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Selecting All Columns Associated With Maximum Value of One Column
Дата
Msg-id alpine.LNX.2.00.1110060610270.26051@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Selecting All Columns Associated With Maximum Value of One Column  (Chris Curvey <chris@chriscurvey.com>)
Список pgsql-general
On Wed, 5 Oct 2011, Chris Curvey wrote:

> Based on your subject line, I'm guessing that you want something like this:
>
> select quant, param, site_id, sample_date, str_name from chemistry where
> param = 'TDS' and str_name = 'BurrowCrk' and quant = (select max(quant)
> from chemistry where param = 'TDS' and str_name = 'BurrowCrk')

Chris,

   Thank you. I missed seeing the latter part.

   This returns 0 rows, but it puts me on the right track.

Rich

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

Предыдущее
От: Robert Buckley
Дата:
Сообщение: Re: script not working in php
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Selecting All Columns Associated With Maximum Value of One Column