February 6, 2008 at 9:00 am
If you only want positive prices remove the comment markers "--" and make "AND MAX(Price) >= 0" part of the query.
If you leave as is, you could potentially get a negative maximum value response from the query.
N 56°04'39.16"
E 12°55'05.25"
February 6, 2008 at 9:02 am
Blair
Two minuses like this flags the rest of the line as a comment.
Peso's solution is a perfect and extremely elegant solution to the problem as originally described - does it work for you?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 6, 2008 at 9:09 am
ah ha! that makes sense - never had to do a comment in sql - now i know (and knowing is half the battle - Gi Joooooooe)
it does seem to work at first glance - i have to spend some time to verify it but i think it will do the trick.
thanks very much to everyone!!
Viewing 3 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply