Viewing 2 posts - 1 through 2 (of 2 total)
decentflower,
Try this:
SELECT * FROM @tbl t JOIN
(select sort,type, Max(price) AS price , name from @tbl group by sort,type,name) mmax
ON t.sort = mmax.sort AND t.type = mmax.type AND t.name =...
September 2, 2009 at 5:32 am
#1048038
The table-valued function [dbo].[TableFormDelimetedStringWithoutNumberList] will choke on lists longer than 100 elements. Here's the error:
Msg 530, Level 16, State 1, Line 1
The statement terminated. The maximum recursion 100 has...
August 18, 2009 at 6:57 am
#1040804