Viewing 15 posts - 8,716 through 8,730 (of 8,760 total)
Jeff Moden (3/25/2014)
sqlserver12345 (3/25/2014)
Thanks Jeff/Eirikur .Should have updated the forum.I got what I was looking for.Thanks again.What did you end up with finally?
Making way for the new CONCAT function in...
March 26, 2014 at 12:37 am
This query uses the LAG function;
select t1.ClientID, t1.Rn, t1.EndMonth
,t1.OrderAmt
,LAG(t1.OrderAmt,1,0) OVER
(
PARTITION BY ClientID
ORDER BY EndMonth ASC
) AS ...
March 25, 2014 at 10:49 pm
Jeff Moden (3/25/2014)
Eirikur Eiriksson (3/25/2014)
sqlserver12345 (3/25/2014)
ascii value for commathis time the answer is 44 π
Heh.... I caught the reference. Too funny! π
Not to mention all the fish π
March 25, 2014 at 2:58 pm
Can you provide any DDL?
Look into STPointN and other Geography/Geometry functions.
March 25, 2014 at 2:13 pm
Very interesting, wouldn't jump to any conclusions yet, what are the server specs? Disk and mem I/O?
March 25, 2014 at 1:57 pm
Using Bob's DDL, here's a Window function version
CREATE TABLE #tmp(id int,
dt date);
INSERT INTO #tmp
VALUES(53,'2014-01-01'),...
March 25, 2014 at 1:46 pm
Jonathan Marshall (3/24/2014)
Looking to pass in the @targetDbName into the Open Query.
The target DB is PostGres and requires 2 single quotes around the dataset name.
Is this...
March 25, 2014 at 1:26 pm
Looks like JM's seal of approval, which doesn't come easily.
Well done indeed!
Thanks Dwain :Wow:
March 25, 2014 at 1:38 am
sqlserver12345 (3/25/2014)
ascii value for comma
this time the answer is 44 π
March 25, 2014 at 1:29 am
Simple as
select char(39) + column + char(39)
March 25, 2014 at 12:47 am
Jeff Moden (3/24/2014)
dwain.c (3/24/2014)
Interesting article. I'm curious to see what comments Jeff has about it.
Eirikur asked me to review it (seems like a couple/three months ago) and I'm tickled...
March 24, 2014 at 5:19 am
ChrisM@Work (3/24/2014)
DECLARE @pString VARCHAR(8000), @pDelimiter CHAR(1);
SELECT @pString = 'The,quick,brown,fox', @pDelimiter = ',';
WITH E1(N) AS (
...
March 24, 2014 at 5:13 am
Phil Parkin (3/24/2014)
Or maybe let SSIS do all the work by defining @@@ as a column delimiter.
touchΓ©
March 24, 2014 at 2:21 am
Same query as before with the addition of a conditional statement to format the output.
with Groups as (
select 1 as GroupId,'Oracle' as GroupName,0 as IdParentGroup union all
select 2 as GroupId,'Microsoft'...
March 24, 2014 at 1:37 am
Or in other words
with Groups as (
select 1 as GroupId,'Oracle' as GroupName,0 as IdParentGroup union all
select 2 as GroupId,'Microsoft' as GroupName,0 as IdParentGroup union all
select 3 as GroupId,'IBM' as GroupName,0...
March 23, 2014 at 11:38 pm
Viewing 15 posts - 8,716 through 8,730 (of 8,760 total)