To just report:
SELECT DISTINCT ITEM1 AS I1, ITEM2 AS I2, ITEM3 AS I3, OTHER1 AS O1 FROM FILE1 A UNION SELECT
DISTINCT ITEEM1 AS I1, ITEEM2 AS I2, ITEEM3 AS I3, OTHER1 AS O1 FROM FILE2 B
ORDER BY I1, I2, I3
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of paultherrien@xxxxxxxxxxxxxxxxxx
Sent: Wednesday, June 26, 2013 7:32 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Merge of 2 similar files
Field names need to be unique.
Paul
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Hoteltravelfundotcom
Sent: Wednesday, June 26, 2013 8:14 AM
To: Midrange Systems Technical Discussion
Subject: Re: Merge of 2 similar files
I want to merge the data from 2 PF but having the same field names in the new file.
file1
ITEM1
ITEM2
ITEM3
OTHER1
FIle2
ITEEM1
ITEEM2
ITEEM3
OTHER1
NEW FILE:
ITEM1
ITEM1 (*** was called ITEEM1)
ITEM2
ITEM2 (** Was called ITEEM2)
ITEM3
ITEM3 (** WAS called ITEEM3)
OTHER1
OTHER1
On Tue, Jun 25, 2013 at 5:09 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
On 6/25/2013 4:32 PM, Hoteltravelfundotcom wrote:
Scott, thanks I can try that, but won't it just give me all the records?
I am wanting to sort of rename fields to be 1 name.
It would be easier if you posted your DDS, some example data and the
end result that you want to achieve.
--buck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.