February 18, 2008 at 7:07 am
'...performance will be terrible compared to the "UPDATE" method I wrote about, but the group sizes are small enough where most folks won't notice...'
Do you have a link to your description of the "UPDATE" method? I'm having trouble finding it.
I have learned a great deal from your posts and greatly appreciate your time and effort. I also TRUELY appreciate your formatting. Makes is so much easier to follow.
February 18, 2008 at 10:49 am
Sure thing, CA... thanks for asking...
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
... and thanks for the kudo on formatting. I do it mostly so I can read it 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2008 at 2:57 am
Hello Again,
How can I prevent duplicate values on a row without using Primary keys?
For example you can easily see that Sales price2 and sales price3 are same.How can I prevent this?
March 27, 2008 at 8:14 am
erdem (2/28/2008)
Hello Again,How can I prevent duplicate values on a row without using Primary keys?
For example you can easily see that Sales price2 and sales price3 are same.How can I prevent this?
Prevent the duplicate values where? In the report or in the original table?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 28, 2008 at 7:08 am
This topic seems very much alike this one
http://www.sqlservercentral.com/Forums/Topic475244-8-1.aspx
N 56°04'39.16"
E 12°55'05.25"
March 28, 2008 at 7:26 am
Ian Yates (2/17/2008)
And I would get your reporting tool to do the cross-tab rather than trying to bend a SQL resultset to do it. For example, both Crystal Reports and SQL Server Reporting Services can easily do cross-tabs or matrices.A cross-tab is a display/presentation method. Use SQL to return data and then let your display package format it.
I agree, these tools will do the job more effectively than writing it in SQL. Besides what happens when you find you need to change the query? Consider what you are trying to accomplish and accomplish it with the proper tool.
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply