Hi.
This is mentioned in the fine manual:
http://www.mysql.com/doc/e/x/example-Maximum-column-group-row.html
Bye,
Benjamin.
On Fri, Aug 31, 2001 at 01:46:43PM +0200, [EMAIL PROTECTED] wrote:
[...]
> Normally I would go about like this:
> SELECT currency_rate.currency_id, currency_date, currency_rate
> FROM currency_rate
> WHERE (currency_rate.currency_id, currency_date) IN
> (
> SELECT currency_id, MAX(currency_date)
> FROM currency_rate
> GROUP BY currency_id
> )
>
> But MySQL doesn’t support nested selects...
> How do I solve this?
[...]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php