Viewing 15 posts - 706 through 720 (of 2,007 total)
michael vessey (5/2/2012)
declare @start bigint=99;
declare @end bigint=147;
with x (num) as
(
select 1 as num
UNION ALL
SELECT num+1 from x
where num <@end
)
select *...
May 2, 2012 at 4:07 am
elham_azizi_62 (5/2/2012)
I could download this zip file.please try again.thanks
I didn't say I can't, I said I won't. I don't have control over your machine, so I don't know what it...
May 2, 2012 at 2:58 am
Last try from me, I won't download a zip file. Please post the readily consumable sample data and ddl scripts in a post.
So until you do as requested, I'm out.
May 2, 2012 at 2:13 am
I'm not downloading a zip file, and I'm sure many others won't either.
Instead, follow the example laid out in this article (which I've already linked you to once)[/url] and post...
May 2, 2012 at 1:44 am
I'm going to take a bit of a guess, because so far you're not very clear.
This is ugly, needs to be tidied up and requires some performance tuning. It's...
May 2, 2012 at 1:41 am
Phil Parkin (5/1/2012)
Eugene Elutin (5/1/2012)
...
Using != instead of <> is not recommended, as != is non-ISO standard (though it still works).
...
I prefer to use "!=" over "<>". Is any reference...
May 1, 2012 at 7:09 am
Hello and welcome to SSC!
I'd like to be able to help you, but it seems you've forgot to post readily consumable sample data, ddl scripts or expected results based on...
May 1, 2012 at 6:33 am
No problem, make sure you post with any questions you have.
May 1, 2012 at 6:30 am
justmohit (5/1/2012)
Select r1.*,r4.Name+ '/' + r3.Name + '/' + r2.Name + '/' + r1.Name
From Roots r1
Inner Join Roots r2 on r1.ParentId=r2.ItemId
Inner Join Roots...
May 1, 2012 at 6:27 am
blandry (4/30/2012)
April 30, 2012 at 2:05 pm
The CTE that I posted for you generates the months between a start date and now, was that not what you were after?
It is massively faster than a cursor...
April 30, 2012 at 1:34 pm
Please don't use a cursor for this. . .
WITH CTE(n) AS(SELECT 1 UNION ALL SELECT 1),
CTE2(n) AS (SELECT 1 FROM CTE x, CTE y),
CTE3(n) AS (SELECT 1 FROM CTE2 x,...
April 30, 2012 at 9:39 am
pwalter83 (4/26/2012)
April 26, 2012 at 10:29 am
Jeff Moden (4/26/2012)
Cadavre (4/26/2012)
Nicely explained Jeff.I may have to "borrow" your method of generating random DATETIME data, my method is more difficult to understand when people glance at it. 😀
Borrow...
April 26, 2012 at 8:11 am
ChrisM@Work (4/26/2012)
LOL quite right too!I'd use iTVF's for this, A to B and B to A, and SUM across seconds to a bigint - what do you reckon, Cadavre?
Probably the...
April 26, 2012 at 7:05 am
Viewing 15 posts - 706 through 720 (of 2,007 total)