Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
|
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 3rd, 2006, 04:14 AM
Authorized User
 
Join Date: Jul 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to lawsoncobol
Default Compare Two MS access db file and find missing rec

Hi friends

i have two Ms access database files with same structure and same data

Example

File 1

Row (Key) SSN Tax Salary Gross
1 3 6 7 9
2 4 6 8 10
Missing record---------------------


File2
Row (Key) SSN Tax Salary Gross
1 3 5 7 9
2 4 6 8 10
3 11 12 13 14

Note : In file1 first row the value of tax are different

My SQL query is
--------------------------------------------------------------------
SELECT
File2.row, File2.SSN, File2.QtrTxbl, File2.QtrTxbl, File2.YtdTxbl, File2.QtrAmt, File2.YtdAmt, File2.QtrGross, File2.YtdGross

FROM File2 LEFT JOIN File1 ON File2.SSN=File1.SSN

WHERE (((File1.SSN) Is Null));

--------------------------------------------------------------------

I want Qury to return only 3rd record in file2 as that one is Null in file1 (missing in file1 but present in file2)

The problem is its retrieving first row and the missing record too

Can anyone help me with this?

Thanks and Regards
Lawson, COBOL
__________________
Thanks and Regards
Lawson, COBOL





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.Net - Access DB - Date compare johneecc VB How-To 4 August 7th, 2008 04:23 PM
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
Compare two table - Find missing record lawsoncobol Access VBA 5 August 4th, 2006 01:18 AM
Convert MS Excell file into MS Access file ashish2001mca General .NET 0 June 29th, 2006 07:09 AM
JDBCRealm using MS access DB ZouK01 Java Databases 0 May 26th, 2004 02:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.