March 30, 2010 at 6:31 am
I have a table where following records to be aggregated
•First, Middle, and Last Name
•B
•ID
• Date
And than exclude ceratin data based on this aggregation. Afterwards aggregate data on category column so that end result will be one aggregated row
•First, Middle, and Last Name
•B
•ID
Category
How do I do this using T-SQL
March 30, 2010 at 6:38 am
It would be better if you post the structure of your table and some test data then your desire results!
I'm sure that you will have many alternatives how to do that!
March 30, 2010 at 6:38 am
My recommendation is that you read the article at the first link in my signature line below.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2010 at 11:32 am
Thanks all for your responses. I got it resolved. It was a pretty simple thing.
March 30, 2010 at 11:54 am
saurabh Srivastava-398090 (3/30/2010)
Thanks all for your responses. I got it resolved. It was a pretty simple thing.
It's always nice to know the problem is solved...though it would be nice if you shared the details, for the benefit of anyone else reading your thread who has the same problem.
Paul White
SQLPerformance.com
SQLkiwi blog
@SQL_Kiwi
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply