Viewing 15 posts - 16 through 30 (of 136 total)
sqlfriends (12/8/2011)
File 1 has an age column,...
December 8, 2011 at 6:56 pm
AndrewSQLDBA (12/8/2011)
Thank You EveryoneI was close, but just could not get it correct.
Greatly appreciate all the help
Andrew SQLDBA
You're welcome!
December 8, 2011 at 12:01 pm
varunkum (12/8/2011)
where
CASE WHEN @PrmDateDim= 'CreationDate' THEN (Case WHEN L.SALESSTATUS = 1
...
December 8, 2011 at 12:00 pm
I misspoke a bit...the subquery approach is even less performant than I first wrote, as the execution plan shows that it actually scans the #Member table 25 times. It has...
December 8, 2011 at 11:46 am
ChazMan's approach works, bit using the nested IN subqueries results in scanning the #Member table three separate times. It can be done in a single scan using an approach like...
December 8, 2011 at 11:42 am
Does the entire date range between PubStartDate and PubEndDate need to fall inside the range defined by your parameters? Or are you looking for overlap? If you're not including overlap,...
December 8, 2011 at 11:26 am
Yingchai, did you have any luck with this? Or are you still having performance problems?
December 8, 2011 at 6:40 am
mpaulus-1000078 (12/6/2011)
December 6, 2011 at 4:54 pm
NJ-DBA (12/6/2011)
NJ-DBA (12/6/2011)
December 6, 2011 at 2:08 pm
What is the scope of these temp tables, #local or ##global?
December 6, 2011 at 10:00 am
bitbucket-25253 (12/6/2011)
http://www.sqlservercentral.com/articles/Tally+Table/72993/
The articles title is:
Tally OH! An Improved SQL 8K “CSV Splitter”...
December 6, 2011 at 8:42 am
Also, check out the MERGE statement syntax: http://technet.microsoft.com/en-us/library/bb510625.aspx
December 5, 2011 at 3:44 pm
I just realized you need to summarize word count across multiple rows, so what I posted would need some reworking to be effective for that (although it should be doable,...
December 4, 2011 at 7:46 pm
It would be good if you could post an example of what the desired output should be. Also, if you could post your sample data as INSERT statements that would...
December 4, 2011 at 11:46 am
Here's a quick stab at doing this with a tally table. Note that to run this code, you need to first have created the tally table using the code in...
December 4, 2011 at 8:04 am
Viewing 15 posts - 16 through 30 (of 136 total)