Viewing 15 posts - 31 through 45 (of 548 total)
OK, so it's a cute CTE exercise.
But has anyone ever used the Fibonacci series values for anything in the real world?
I would be curious to know.
December 18, 2014 at 2:41 am
robertm-772679 (9/18/2014)
September 18, 2014 at 6:20 am
Ah yes, completely missed that 5a.
So 10.5 means ten and half commandments.
So 5a is half a commandment.
I guess, once you reach 11 you can't pretend to have 10 any more.
Thus...
September 18, 2014 at 5:15 am
SimonHolzman (9/17/2014)
Comments posted to this topic are about the item <A HREF="/articles/Editorial/115561/">The 10 (.5) Commandments for IT Professionals</A>
Maybe I didn't explain myself.
In the title above, what is the meaning of...
September 18, 2014 at 4:47 am
But you skipped 10.5!
September 18, 2014 at 4:05 am
Forgive my ignorance, but I can't quite grasp the (.5) in 10 (.5)?
I tried to lay back and relax and read that thing.
I tried to lay my head down to...
September 18, 2014 at 12:49 am
Yes it's a lot faster. Thus on half a million rows
3243 milliseconds using my scalar function
3822 milliseconds using scalar function which applies your min/max concept (thus slightly less code)
593 milliseconds...
August 13, 2014 at 6:15 am
Show me an example given a table with 4 dates.
It should return the 4 dates and the result.
Have never used this ITVF technique.
August 13, 2014 at 5:18 am
Very neat idea this Max(From), Min(To).
But when I try this on a scalar function it runs slower than my scalar function.
Don't know why, but I don't use table valued function...
August 13, 2014 at 5:03 am
Have a go at this:
create function overlaphours(@s1 as datetime,@f1 as datetime,@s2 as datetime,@f2 as datetime) returns integer as
begin
declare @result as int
set @result=0
if @s2>=@s1 and @f2<=@f1
set @result=datediff(hh,@s2,@f2)
else if @s2<@s1...
August 13, 2014 at 3:34 am
This corruption issue has always intrigued me.
I have always wondered whether anyone has done any investigation on an actually corrupt database to see where it has become corrupt and possibily...
August 8, 2014 at 3:19 am
zafarthesultan (6/2/2014)
June 3, 2014 at 1:25 am
I woulld be very curious to know from the OP what kind of environment produces this sort of data.
Although the problem is interesting, what exactly does the query result tell...
May 30, 2014 at 12:31 am
Eirikur,
I recently re-ran into this old problem of not being able to drop/create the same temporary table more than once in a stored procedure.
At this discussion forum
http://stackoverflow.com/questions/9812302/can-i-recreate-a-temp-table-after-dropping-it
it states at the...
May 29, 2014 at 4:09 am
Viewing 15 posts - 31 through 45 (of 548 total)