SQL problem

Поиск
Список
Период
Сортировка
От Salvador Mainé
Тема SQL problem
Дата
Msg-id 3AA6445B.F409966F@yahoo.com
обсуждение исходный текст
Список pgsql-sql
Hello:

I have a table with pluviometrical data

meteo (rain float, day date)

I want to select the the day of maximum value for each year.It should be
something like :


select max(rain),day from meteo group by date_part('year', day);


but it obiously doesn't work.
I thought of doing it with aggregates, but it's far too complicated. Is
there an 'easy' way to do this?



-- 
Salva


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

Предыдущее
От: "Emils Klotins"
Дата:
Сообщение: default value syntax - pg compared to?
Следующее
От: "Kevin T. Manley \(Home\)"
Дата:
Сообщение: Re: SQL problem