Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by question
Message
From
14/07/2005 15:39:28
 
 
To
13/07/2005 00:35:45
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
01031432
Message ID:
01032788
Views:
19
This was one possible solution that a friend very familiar with
PostgreSQL ( the target db in this question btw) came up with. I repeat it
here just for informational purposes.

select s.id, s.date, s.price from stock s,
(select id, min(price) as price from stock group by id) as m
where s.id = m.id and s.price = m.price
and s.date = (select max(x.date) from stock x
where x.price = m.price and x.id = m.id);


Eric:
I really don't understand your solution, could you give me the plain english desrciption of what its doing?

Thanks Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform