Viewing 2 posts - 1 through 2 (of 2 total)
Hi Jeff,
Thanks for the reply. I dont understand what you mean. I thought the first part of the correlated subquery gave me what I was looking for in setting the...
November 22, 2007 at 11:06 am
#753451
Thanks very much. That worked a treat. I modified the final SELECT to aggregate, as it is easier to read.
SELECT colA, MAX(colB) FROM CTE GROUP BY colA
Thanks again!
November 22, 2007 at 8:36 am
#753426