Viewing 15 posts - 106 through 120 (of 304 total)
Lynn Pettis (4/20/2009)
April 20, 2009 at 9:21 pm
Lynn Pettis (4/20/2009)
April 20, 2009 at 9:18 pm
bruce.trimpop (4/16/2009)
Matt Whitfield (4/14/2009)
bruce.trimpop (4/14/2009)
Bruce
Here is the SQL i used on 2000 to re-create the data and tables - some mods were required, so hope you can check.
Is it...
April 20, 2009 at 9:14 pm
jaimepremy (4/18/2009)
I'm having a hard time rounding avg results upwards (underlying dataype is int).
For example if the sum of 3 rows = 8, then avg should be 3 since...
April 20, 2009 at 6:07 pm
drodriguez (4/17/2009)
April 20, 2009 at 5:57 pm
As a post script, I ended up using Bevan's method.
It works well on tables with up to a few million records. Takes a minute or two.
When I had to run...
April 20, 2009 at 5:19 pm
Virendra Singh (4/14/2009)
Goldie Graber (11/9/2008)
Are there any benefits in using a CTE over a derived table? Or vice versa?Dear Team,
CTE,TempTable,DerivedTable in these which is best according to performance.
Please help
Virenda, why...
April 14, 2009 at 7:57 am
Lynn Pettis (4/8/2009)
I see three consecutive blanks for UserID 2. If you are taking the consecutive blanks AS ENTERED, then where are the three consecutive blanks in your original...
April 8, 2009 at 10:05 am
That won't work, Lynn. It doesn't take into account consecutive blanks.
For example if I use the following data, I still expect 1 as the answer but your query returns 1...
April 8, 2009 at 9:55 am
Now THAT's one really smart idea!
With the addition of an ORDER BY and a trailing comma it works perfectly.
Here's the final code:
;WITH OrderedCheckIn AS
(
SELECT UserID
, (SELECT ',' + ISNULL(Comment,'')
FROM #CheckIn...
April 8, 2009 at 9:10 am
Here's what I have now. It seems like it's working correctly.
However, when I try it on a real data table with 5 million rows it returns inconsistent results.
-- create a...
April 7, 2009 at 5:36 pm
I think this may have something to do with the amount of data being manipulated.
The table we are talking about contains 4 million to 10 million rows.
The update method seems...
April 7, 2009 at 5:14 pm
RAO (3/16/2009)
Thanx Friends...... i found the solution....
Would you post it here for the rest of us?
March 17, 2009 at 11:02 am
Jeff Moden (3/16/2009)
Goldie Graber (3/16/2009)
Jeff Moden (3/16/2009)
One of your requirements was to ....
4. Replace all entity codes (“&xxx;”) with X
If you "smear" that...
March 16, 2009 at 7:31 pm
Viewing 15 posts - 106 through 120 (of 304 total)