RE: Compare Data in two differant tables
From: Paul (Paul_at_discussions.microsoft.com)
Date: 02/03/05
- Next message: Alejandro Mesa: "RE: Compare Data in two differant tables"
- Previous message: Keith Kratochvil: "Re: Looping through databases in stored proc"
- In reply to: Dennis Burgess: "Compare Data in two differant tables"
- Next in thread: Alejandro Mesa: "RE: Compare Data in two differant tables"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Feb 2005 12:09:10 -0800
Untested due to lack of DDL...
SELECT P.XTeleLink, TS.XTeleLink
FROM XTeleLink TS
LEFT OUTER JOIN Prospect P ON TS.XTeleLink = P.XTeleLink
WHERE TS.XResultCode = 9
AND P.XTeleLink IS NULL
Paul
"Dennis Burgess" wrote:
> Here is my query
>
> Select Prospect.XTeleLink as exp1, TeleScrp.XteleLink as exp2
> from Prospect, XTeleLink
> Where exp2 <> exp1 and TeleScrp.XResultCode = 9
>
> What I want is to find XTeleLink numbers where the XResultCode = 9 in the
> TeleScrp table, but there is NOT at record in my Prospect table that has
> that same XTeleLink
>
> I have some missing data, there should always be data in the prospect table,
> and I am trying to find out what is missing!
>
> Any help in adavnce, thanx!
>
> Dennis
>
>
>
- Next message: Alejandro Mesa: "RE: Compare Data in two differant tables"
- Previous message: Keith Kratochvil: "Re: Looping through databases in stored proc"
- In reply to: Dennis Burgess: "Compare Data in two differant tables"
- Next in thread: Alejandro Mesa: "RE: Compare Data in two differant tables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|