in reply to OT: peak values with SQL

Seems like you're going at it the hard way. Why not just:
SELECT uptime_id AS uid, uptime_value FROM uptime WHERE uptime_value = (SELECT MAX(uptime_value) FROM uptime);

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: OT: peak values with SQL
by jZed (Prior) on Jun 05, 2004 at 17:00 UTC
    Because your query returns only a single peak value, rather than a list of all peak values as the OP requested.