Viewing 15 posts - 121 through 135 (of 165 total)
I ran the following select statement on the tally table created by the above script:
select * from tempdb.dbo.tally where n<=100000
And up to N=4354, the 'row number' is identical...
September 24, 2009 at 3:13 pm
In case this is relevant, the tally table was created in tempdb as a permanent table (please comment if this is not a good thing to do), using the script...
September 24, 2009 at 3:04 pm
:blush:
Well, it is a large one (if a little is good, big is better, no?)
Before I even get to the answer, let me try and explain away my ignorance. ...
September 24, 2009 at 2:36 pm
Jeff:
Jan 3 2000 12:00AM is the beginning date
Sep 22 2009 12:00AM is the ending date.
d lewis
September 24, 2009 at 2:29 pm
Additionally, cutting and pasting your last example into my ssms and running it as is
--===== Presets
DECLARE @DateStart DATETIME
DECLARE @DateEnd DATETIME
SELECT @DateStart = '2008-01-01 06:00',
...
September 24, 2009 at 2:14 pm
It looks like your code as written fails if it encounters February 28 in a non leap year. (when I did the rbar approach using a cursor, I found the...
September 24, 2009 at 1:50 pm
I finally dived in and started to try and understand how to use tally tables, and didn't take long to hit a wall. I tried the orders summary example...
September 24, 2009 at 12:42 pm
Hooooot!
Leading commas all the way!
CAPS for all sql keywords!
Keep the aliases short and sweet!
😛
I'd never have guessed the discussion would be this long, but it's a good read on a...
May 7, 2009 at 9:48 am
For an IT type worker, I'm a bit of a luddite. I absolutely refuse to have a television, only got a cell phone last year, no ipod, and only...
April 9, 2009 at 9:29 am
Hate to be a spoiler, but the obvious solution to lowering energy costs is to reduce the footprint -- that is, heat and cool a smaller area. U.S. houses...
February 26, 2009 at 9:09 am
We live in the country, so most of our films are via netflix. However we do now and then see current releases. Of those mentioned, I think...
January 30, 2009 at 10:30 am
knausk (1/9/2009)
January 9, 2009 at 11:45 am
I overlooked the 'overseas' part... Anyone who tried that in the U.S. would be run out of town (osha, etc.).
January 9, 2009 at 11:21 am
knausk (1/9/2009)
January 9, 2009 at 11:09 am
If you strip out the details of the HR person's comments -- that is, we all ought to strive to dress as Bill Gates, etc. -- the substance seems to...
January 9, 2009 at 11:04 am
Viewing 15 posts - 121 through 135 (of 165 total)