GROUP BY issue

Поиск
Список
Период
Сортировка
От Jure Kodzoman (Dhimahi)
Тема GROUP BY issue
Дата
Msg-id 1144236218.5303.5.camel@localhost.localdomain
обсуждение исходный текст
Список pgsql-sql
Hy list.

I have 3 tables:

performance
event
pool_performance

each event has it's performances, and can be assigned to one or more
pools.

pool_performance holds performance_id, pool_id and from_date

performance has event_id and performance_id as primary key


what I want to do is 

select min(pool_performance.from_date), pool_id, event_id group by
performance_id

but done in a way that I group only performances belonging to the same
event but for the same pool, and not all performances.

Thanks in advance,

Jure



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

Предыдущее
От: "Vellinga, Fred"
Дата:
Сообщение: Special meaning of NL string
Следующее
От: Jeff Boes
Дата:
Сообщение: Joins involving functions