Viewing 15 posts - 3,646 through 3,660 (of 3,957 total)
I've taken a bit of the mystery out of the plan costs by converting the tally table used in my first solution to this one.
;WITH Nbrs_2 (n) AS (SELECT 1...
April 30, 2012 at 8:40 pm
Jeff Moden (4/30/2012)
p.s. Beware of using execution plan cost comparisons. Even the actual execution plans are far from perfect.
I know and have seen cases where the plan cost...
April 30, 2012 at 8:34 pm
Mea culpa! I missed your comment about the 0 based tally table. Works fine when I fix that although my comment about the query plan cost holds.
April 30, 2012 at 8:32 pm
Not sure what I did wrong but I ran this (same test data table @abc):
;WITH Nbrs_2 (n) AS (SELECT 1 UNION SELECT 0)
,Nbrs_1 (n) AS (SELECT 1 FROM Nbrs_2 n1...
April 30, 2012 at 8:30 pm
Jeff Moden (4/30/2012)
dwain.c (4/30/2012)
Thought I could slip one past old Eagle Eye! Guess I was wrong.
Perhaps a more direct approach... pick your favorite zero-based "Tally Table" method.
WITH
cteCount AS
(
SELECT...
April 30, 2012 at 8:14 pm
I'm beginning to remember why I tried to slip that one past you.
Surely you can't be suggesting something like this (using my simulated Calendar table). While it works, I'm...
April 30, 2012 at 8:08 pm
Thought I could slip one past old Eagle Eye! Guess I was wrong.
April 30, 2012 at 7:15 pm
Mark,
It is always nice to see someone with obvious experience weigh in on a thread like this. Your initial algorithm looks pretty complex and I'll need to study it...
April 30, 2012 at 7:12 pm
facturan.antonio (4/30/2012)
I try to somehow copy what dwain.c did in his query. I was just wondering if there's a possibility that the orig lat and long would be...
April 30, 2012 at 7:09 pm
Jeff Moden (4/30/2012)
dwain.c (4/30/2012)
The trick is to find...
April 30, 2012 at 6:04 am
vinu512 (4/30/2012)
dwain.c (4/30/2012)
vinu512 (4/30/2012)
1. If there is no...
April 30, 2012 at 4:39 am
ChrisM@Work (4/30/2012)
dwain.c (4/29/2012)
April 30, 2012 at 4:37 am
vinu512 (4/30/2012)
1. If there is no @ symbol...
April 30, 2012 at 3:31 am
Anytime you start asking questions about performance, it helps to have some test data.
So I created a table of Airports from the attachment. It's not a very good table...
April 30, 2012 at 3:02 am
RULES:
If there is no @ symbol exists in the email ID, reject that record
customer age should be > 18
For the above, assuming no INSERT should occur if they're not...
April 30, 2012 at 12:49 am
Viewing 15 posts - 3,646 through 3,660 (of 3,957 total)