Viewing 15 posts - 1,936 through 1,950 (of 5,504 total)
That sounds like a job forCrossTab together with Row_Number to get it sorted as requested.
If you can't predict the max. number of column groups (e.g. the 5 you posted) you...
February 12, 2011 at 9:42 am
Craig, Lynn:
Even though it might be fun arguing with a person in such a mood from time to time, there usually is a point where the discussion starts running in...
February 12, 2011 at 4:15 am
Based on what you described so far I'd use something along the following concept:
DECLARE @tbl TABLE
(
id INT IDENTITY(1,1),
col1 VARCHAR(20),
col2 VARCHAR(20)
)
INSERT INTO @tbl
SELECT 'Test1~Test2' , '10~20' UNION ALL
SELECT...
February 11, 2011 at 11:28 am
I'd move the section in question into a subquery:
SELECT
...
CASE WHEN MGP.COMPANY_ROLE_CD = 'BK' THEN MGP.COMPANY_ROLE_CD END AS [BK_PARTY],
...
February 11, 2011 at 11:08 am
The last link in my signature will point you at a split function to be known as one of the best performing solutions using T-SQL.
February 11, 2011 at 4:21 am
Would SQL Server 2008 R2 Express be an option?
February 10, 2011 at 4:40 pm
Craig Farrell (2/10/2011)
Hm, YYYYMMDD format? Right right... ISO conversion. Good call. I like the bit with the 100+ instead of replication routines. Nice touch. Kinda...
February 10, 2011 at 3:52 pm
george sibbald (2/10/2011)
LutzM (2/10/2011)
We had some SS2K and SS2K5 versions when we decided to replace the SS2K with SS2K8 and...
February 10, 2011 at 3:46 pm
ramksharma91 (2/10/2011)
now i know...
February 10, 2011 at 3:39 pm
Craig Farrell (2/10/2011)
;with cte AS
( SELECT *, CONVERT( DATETIMe, CONVERT( VARCHAR(20), salesmonth) + '/'...
February 10, 2011 at 3:28 pm
ramksharma91 (2/10/2011)
next guys Hold on I am A STUDENT not a business man not IT pro NOt any Share Holder.
NOW I...
February 10, 2011 at 3:07 pm
Sean Lange (2/10/2011)
February 10, 2011 at 2:47 pm
I think a life cycle of three years is too short to be manageable.
It takes about a year before we even get the new version approved internally or before our...
February 10, 2011 at 2:12 pm
Viewing 15 posts - 1,936 through 1,950 (of 5,504 total)