GROUP BY issue - Mailing list pgsql-sql

From Jure Kodzoman (Dhimahi)
Subject GROUP BY issue
Date
Msg-id 1144236218.5303.5.camel@localhost.localdomain
Whole thread Raw
List 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 by date:

Previous
From: "Vellinga, Fred"
Date:
Subject: Special meaning of NL string
Next
From: Jeff Boes
Date:
Subject: Joins involving functions