Viewing 15 posts - 10,021 through 10,035 (of 10,143 total)
Reckon Jeff's right.
Try this...
Select b.Col1, b.Col2, a.Col1, a.Col2
from Tab1 a join Tab2 b
on a.Col2 = b.Col2
... don't think you will find any rows where b.Col2 and a.Col2 don't match.
Then find...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 13, 2007 at 10:15 am
Many thanks for your prompt reply, Rich. Both checked and negative.
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
October 12, 2007 at 9:26 am
mrpolecat (10/2/2007)
.
.
.
-- took 1 hr 50 minutes
--new query with join similar to Peter's
.
.
.
--took 1 minute 11 seconds
Quite a perfomance boost for the join
No kidding Mr Polecat, nice result.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
October 2, 2007 at 7:33 am
Hi Mr Polecat
Do you need columns other than uid2 in your inner derived table?
update tb_leadbox
set invalidflag=6
where uid2 not in
(select min(uid2) as uid2
from tb_leadbox
where entrydate >= dateadd(dd,-365,getdate())
group...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
October 1, 2007 at 2:48 am
Paul
I posted the general locale earlier in the thread. Matt says it all (thanks Matt!)
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 16, 2007 at 12:42 pm
Hi Robert
Have you tried "WHERE NOT DELETED()" in your query?
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 12, 2007 at 1:37 am
Many thanks Steve, and thanks for the feedback Brandie.
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 24, 2007 at 9:01 am
Brandie
You're absolutely right - I certainly hadn't considered the legal angle.
My post to the interviewer is exactly as above apart from blanking the names. The company has hired several times...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 20, 2007 at 7:34 am
I'm not sure how relevant this is, but it kinda fits so here goes.
At a recent interview for a 6-month gig with a financial company, I was asked to...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 20, 2007 at 7:01 am
Neigh, lad. ![]()
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 17, 2007 at 2:11 pm
Spot on, Will, that's the answer my interviewer was expecting two weeks ago - even though round manhole covers are rare over here in the UK - in fact I'm...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 17, 2007 at 6:55 am
Just had a quick play with this, here's the content of a sample text file:
Seller UserId: NO MATCHING DISBURSEMENT!
Business Name: NO MATCHING DISBURSEMENT!
Order ID: 166118
Seller UserId: C544068076250756
Business Name: EOM-PHILLY...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 17, 2007 at 5:57 am
Chris
Any feedback? What's your final solution?
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 17, 2007 at 3:04 am
Person is one entity, which may or may not have attributes of breeder / owner etc. Keep persons together in one table.
Whether or not you decide to create tables...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 16, 2007 at 5:02 am
Here's a more set-based method - thanks for providing me with the incentive to do this - which uses a "tally" or "numbers" table. It's quite fast, get's a match...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
August 15, 2007 at 6:45 am
Viewing 15 posts - 10,021 through 10,035 (of 10,143 total)