Viewing 15 posts - 2,041 through 2,055 (of 3,957 total)
SQLKnowItAll (1/31/2013)
dwain.c (1/31/2013)
SQLKnowItAll (1/31/2013)
Here's my issue......
2. However!!! SQL 2012 solves this problem with new window functions, so I'm not going to complain too much... 😀
Jared - I would be most...
January 31, 2013 at 8:50 pm
Sean Lange (1/31/2013)
January 31, 2013 at 7:02 pm
viveksvkola (1/31/2013)
Hear you have create excel sheets dynamically while loading data into excel.can you provide steps of easy to reach:-)
I'd be interested in hearing how to do that too!
And most...
January 31, 2013 at 6:27 pm
I'll be a sport and setup some data to show you how you can display contacts and phones as a delimited list:
DECLARE @Company TABLE (CompanyName VARCHAR(100))
DECLARE @Contacts TABLE (CompanyName VARCHAR(100),...
January 31, 2013 at 6:24 pm
srienstr (1/31/2013)
CREATE TABLE #Guests (checkin date, checkout date, FullName varchar(50),...
January 31, 2013 at 6:14 pm
Right! Works until you have more than 3 countries.
I prefer the crosstab query approach myself. Jeff Moden has a couple of nifty articles on the subject:
http://www.sqlservercentral.com/articles/T-SQL/63681/
http://www.sqlservercentral.com/articles/Crosstab/65048/
Part 2 (second...
January 31, 2013 at 6:11 pm
Hello again DA!
QU is the fastest approach for running totals:
CREATE TABLE #t2
(StatDate DATE PRIMARY KEY CLUSTERED
...
January 31, 2013 at 6:02 pm
If the two tables are exactly the same why do you need to find differences? 😀
Seriously though, what you could do is something like this:
SELECT *
FROM (
...
January 31, 2013 at 5:28 pm
SQLKnowItAll (1/31/2013)
Here's my issue......
2. However!!! SQL 2012 solves this problem with new window functions, so I'm not going to complain too much... 😀
Jared - I would be most interested in...
January 31, 2013 at 5:14 pm
ChrisM@Work (1/31/2013)
dwain.c (1/30/2013)
ScottPletcher (1/30/2013)
No, no syntax errors per se, but that method's not guaranteed to work safely either.
Scott - Can you explain this?
I understand that ordering may be an issue....
January 31, 2013 at 4:44 am
SQLKnowItAll (1/30/2013)
DiverKas (1/30/2013)
SELECT STUFF(( SELECT ''+A.data FROM (SELECT DISTINCT TOP 100 PERCENT data FROM #temp ORDER BY data) AFOR XML PATH ('')),1,1,'')
Would that not work? I have found that...
January 30, 2013 at 9:15 pm
ScottPletcher (1/30/2013)
No, no syntax errors per se, but that method's not guaranteed to work safely either.
Scott - Can you explain this?
I understand that ordering may be an issue. Anything...
January 30, 2013 at 9:11 pm
Perhaps this will help you find the path?
;WITH Transcript (message) AS (
SELECT '20:32:12 [Rachel] Thank you for contacting Our Company. How may...
January 30, 2013 at 9:02 pm
dwain.c (1/30/2013)
Overnight for me in Bangkok and I received not a single notification from SSC, not even from...
January 30, 2013 at 7:21 pm
Yup. Although technically most experts would consider a recursive CTE a loop in disguise.
CREATE TABLE #Transfer
(
ID INT IDENTITY PRIMARY KEY,
OldKey INT,
NewKey INT
)
INSERT INTO #Transfer (OldKey, NewKey)
VALUES (1, 2)
INSERT INTO...
January 30, 2013 at 6:18 pm
Viewing 15 posts - 2,041 through 2,055 (of 3,957 total)