Group By problem

Поиск
Список
Период
Сортировка
От kmi@st.uz
Тема Group By problem
Дата
Msg-id 57011.217.29.116.250.1158822418.squirrel@mail.st.uz
обсуждение исходный текст
Ответы Re: Group By problem  (Sean Davis <sdavis2@mail.nih.gov>)
Список pgsql-novice
I have such problem:
need to get full record from a table that fits my conditions

SELECT * FROM groups WHERE grouptype=7 GROUP BY groupid HAVING
max(datecreate)>'2006-09-01'

Postgres tells i should group all fields but this fields have only same
groupid field value, and i need get full record. This must be a common
problem i think. How can i solve this?


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

Предыдущее
От: "Lukasz"
Дата:
Сообщение: Access to PostgreSQL database from external world
Следующее
От: "Jacques Koorts"
Дата:
Сообщение: How to test a function in pgAdmin?