× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I just set up the sample tables to try an exception join and it seems to work.

select * from table1 exception join table2
using (field1, field2)

Table 1
02 1.5
04 16.0

Table 2
02 1.5
04 16.0

Results: no records
---
Table 1
02 1.5
04 16.0

Table 2

Results:
02 1.5
04 16.0
---
Table 1
02 1.5
04 16.0

Table 2
02 1.5

Results:
04 16.0
---


-Tom Stieger
California Fine Wire


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Wills
Sent: Wednesday, March 09, 2011 1:50 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Comparing data in two tables

What is MR?

For some visual reference here is what I am looking for:

This is what I need to make sure is true.

Table 1
02 1.5
04 16.0

Table 2
02 1.5
04 16.0

The problem is when

Table 1
02 1.5

Table 2
02 1.5
04 16.0

or when

Table 1
02 1.5
04 16.0

Table 2
02 1.5

or more so when

Table 1
02 1.5
04 16.0

Table 2


--
Mike Wills
http://mikewills.me



On Wed, Mar 9, 2011 at 3:29 PM, Raul A. Jager W. <raul@xxxxxxxxxx> wrote:
MR?

Mike Wills wrote:
I have two tables that I need to compare to make sure the values
match. For context, one is the employee's time sheet and the other is
a table to holds their requests. Each has a time sheet code and a
number of hours. My plan was to compare by summary to see if they
match. However, I am having problems getting my logic to work
perfectly every time. Without me posting my code (it is becoming a
mess quickly anyway), how would you approach this?

--
Mike Wills
http://mikewills.me

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.