MySQL Forums
Forum List  »  Newbie

Re: Help with minimum/group by
Posted by: Rick James
Date: November 08, 2009 06:10PM

laptop calls it a quirk; I call it a kludge -- pretty much the same.

How many rows will you have? There are even faster solutions, but they get more complicated.

As for speed... My solution should be Order(N), requiring 1-2 full table scans; fine for thousands of rows. The "traditional" solution that laptop describes is Order(N*N), which is fine for a few hundred rows; iffy at a thousand rows; and a cure for insomnia for a million rows.

Options: ReplyQuote


Subject
Written By
Posted
November 08, 2009 12:04AM
November 08, 2009 11:37AM
November 08, 2009 03:37PM
November 08, 2009 05:55PM
Re: Help with minimum/group by
November 08, 2009 06:10PM
November 08, 2009 06:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.