Viewing 13 posts - 166 through 178 (of 178 total)
Hi Julian,
if I understand you correctly, what you need is a full join.
SELECT T1.weekday, T1.weektype, count(T1.orders) As 'OrderCount',sum(T1.CollectValue) as 'CollectValue', T5.CancelCount, T5.CancelValue
INTO #tempv
FROM #temp0 T1
FULL JOIN -- Changed to full...
May 25, 2009 at 5:55 am
The Events and Errors Message Center, located at http://www.microsoft.com/technet/support/ee/ee_advanced.aspx, is the primary source of information on error messages for SQL Server 2005 and improves the customer experience when searching for...
May 25, 2009 at 5:06 am
Florian Reischl (5/24/2009)
Allister Reid (5/24/2009)
heh-he... and i wrote the group by solution in me first post as well as the distinct
:w00t:
I didn't see the group by. Really. So I...
May 24, 2009 at 11:56 am
heh-he... and i wrote the group by solution in me first post as well as the distinct
Have been thinking about dynamic custom data types via CLR for user defined...
May 24, 2009 at 11:26 am
Sorry Flo,
shouldn't have left the distinct query in the middle of my solution!
For reference it finally finished running after 23:53... indexed GROUP BY took 00:10.
The CLR route sounds promising,...
May 24, 2009 at 10:53 am
Hi Wayne,
Does your table have to be a variable, I had a go with a bigger data set and got really bad results on it, it got a lot...
May 24, 2009 at 8:57 am
Ok Jeff, again thanks a lot for your time and patience, turns out your article http://www.sqlservercentral.com/articles/cross+tab/65048/ and subsequent discussions answered all the queries I had โ must spend a little...
May 24, 2009 at 7:31 am
Thanks for bringing some clarity here Jeff, I think I may have confused things by turning data in earlier post into a temporary table!
Many thanks for your post; I had...
May 23, 2009 at 2:32 pm
This is something I have thought about myself, from time to time, and am interested to see if it is possible in sql. Pretty green myself, but it seems...
May 23, 2009 at 8:18 am
Cheers Paul, thanks for your help
May 23, 2009 at 6:46 am
Thanks Paul, I did consider that, but I thought there was some mileage in maintaining the data's structure as supplied to me, rather than post-normalising (?) the data.
Perhaps I should...
May 22, 2009 at 3:58 pm
Something I did with maintaining revisions of important data was on every update to push the entire record to a backup table with exactly the same structure. With UserID...
May 22, 2009 at 3:53 pm
I can't believe there is no mention of Son of Rambo... charming, warm, funny (laugh out loud lots) thoroughly recommended to all.
Do yourself a favour and get the DVD!
January 30, 2009 at 7:33 am
Viewing 13 posts - 166 through 178 (of 178 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