Viewing 4 posts - 1 through 4 (of 4 total)
The article referred to by Jeff is extremely interesting, and I will definitely make use of this technique.
However, I don't think a subquery solution is always bad. It would very...
October 27, 2008 at 8:46 am
A correlated subquery is the way to go. They can be very useful.
select
ID
, ProjectPeriodID
, ItemisedGrantID
, Amount
, ISNULL (
(
-- This does the correlated sub query
SELECT sum (amount)
from ProjectPeriod c
where c.ItemisedGrantID...
October 24, 2008 at 8:59 am
How about converting the int to a varchar with a leading and trailling comma.
Add a leading and trailing comma to the positions list
and use charindex to see if the...
October 24, 2008 at 8:37 am
I don't think the string processing is a problem, but the query would a) not work properly or b) fall over due to the 8K varchar limit (as the author...
December 7, 2006 at 7:09 am
Viewing 4 posts - 1 through 4 (of 4 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy