OK, so far I've tried Ajax query (Will try the other too eventually to compare times) - and it works perfectly. But, now that it came out with a lot more results than expected, I've been given one more requirement: In order to output a row, the date value (col1) must be GREATER than the MINIMUM col1 value for that particular stock. How do you think is the best most optimal way to add that in to the query you already wrote? All I can think of is things that involve a correlated subquery.