Viewing 15 posts - 16 through 30 (of 102 total)
GilaMonster (1/8/2013)
Scan is when you have nothing...
January 8, 2013 at 4:40 am
I believe Jeff talks about this "triangular join" in the article I referenced.
I don't think that its a triangular join - no subquery really.
It looks like a moficifation of the...
October 1, 2012 at 6:37 am
I can't believe I didn't understand it when drew.allen posted it.
Thank you for clarifying 😀
Thank you for the explanation!
August 4, 2012 at 1:46 am
drew.allen (8/3/2012)
August 3, 2012 at 12:38 pm
CELKO (8/2/2012)
Did you know that ANSI/ISO Standard SQL has an OVERLAPS() predicate?
@joe; I didn't know that. Will look around for info.
What arguments does it accepts?
August 3, 2012 at 12:32 am
diamondgm (8/2/2012)
Very cool, thank you for the pointers and the link to Jeff's article capn.hector!Will run some tests in the morning 🙂
@Capn; Sorry I missed your question in the post.
All...
August 3, 2012 at 12:30 am
Hi,
I've solved a problem similar to this before, and I can't for the life of me figure out how I did it.
Maybe the code below will put you (or someone)...
August 2, 2012 at 1:33 pm
Very cool, thank you for the pointers and the link to Jeff's article capn.hector!
Will run some tests in the morning 🙂
August 2, 2012 at 1:29 pm
I may be a little presumptuous in saying that I think that the problem stems from trying to build a SQL solution to a very complex problem that is currently...
July 9, 2012 at 8:28 am
Thank you 🙂
Very cool approach!
Unfortunately, time was a worry, so I have re-written my code in to a while loop, and am inserting row-by-row.
While inside the loop, I can query...
July 7, 2012 at 12:59 pm
Not sure if this approach would be useful?
This method can also be used to determine which columns are alike.
IF OBJECT_ID('tempdb..#mysourcebitwise') IS NOT NULL DROP TABLE #mysourcebitwise
IF OBJECT_ID('tempdb..#mytargetbitwise') IS NOT NULL...
March 18, 2012 at 3:20 am
My guess is that failure is occurring at evaluation of
(VAR <> ROUND((((COST-PRICE)/COST)*100),0))) O
In the WHERE clause.
But its just a guess without sample data.
PS.
That evaluation seems a little redundant?
March 15, 2012 at 12:06 am
Another way of doing it if you never have spans exceeding 24hr:
SELECT CAST(DATEADD(MILLISECOND, (DATEDIFF(MILLISECOND, '2011-11-11 15:25:26.680', '2011-11-11 15:25:48.957')),CAST(0 AS DATETIME) ) AS TIME)
There are probably simpler ways to do this...
November 15, 2011 at 2:02 am
CELKO (9/29/2011)
September 29, 2011 at 11:29 pm
I assume you want to be able to step through the code?
September 29, 2011 at 11:30 am
Viewing 15 posts - 16 through 30 (of 102 total)