UH OH! THERE IS A PROBLEM WITH WHAT I'M ASSUMING CAME FROM THE CFHUB SITE. I
JUST TRIED TO SIGN UP AND NOW I AM GETTING ALL THESE EMAILS!


-----Original Message-----
From: Costas Piliotis [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 3:51 PM
To: CF-Talk
Subject: RE: SQL Help Needed!


This will work in sql server.  Don't think access supports compound outer
joins...  I could be mistaken though...

Select * from
Docmaster left outer join versions on
        docmaster.docnum = versions.docnumber and
        docmaster.version = versions.version
Where verersions.docnumber is null

-----Original Message-----
From: Gieseman, Athelene [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:38 PM
To: CF-Talk
Subject: OT:SQL Help Needed!


I just went through a conversion from one product to another.  As a part of
that process, records were exported via CSV and imported into another MS SQL
database.  Somewhere along the way, not all of the records were imported.
(It was done using the vendor's import utility which was useless in
troubleshooting this issue.)

The question is this:  I want to find all of the records in the original DB
that did not make it into the new one.  There are only two tables involved.
We copied the original table into the new database to make it easier.  So
now they are both in the same DB.  The original table is called DOCMASTER.
The new table is called VERSIONS.  I need to find all of the records in
DOCMASTER that do not exist in VERSIONS.  The only way I can tell is from
two fields in each.

DOCMASTER.DOCNUM should equal VERSIONS.DOCNUMBER
And
DOCMASTER.VERSION should equal VERSIONS.VERSION


How can I write a query to show me every record in DOCMASTER That didn't
make it into VERSIONS?

I know this should be easy.  I apologize in advance.  Very sleep deprived at
this point.  Any help is appreciated.

Athelene Gieseman
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>




______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to