🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5078

Merge 2 DataSets together

#5078
From: Neil H
Date: Tue, 14 Aug 2001 13:23
34 lines
2143 bytes
Is there a way to merge the data from two datasets into a single dataset.

For example I have two tables:

Table 1                                                      Table 2
--------------------------------------                    ------------------
---------------------------------
ID        Name        Phone No                    ID    Name    Mob Phone No
Make
--------------------------------------                    ------------------
---------------------------------
001     Fred          0123456                     002  James  M324531
Nokia
003     Tom           0654321                     004  Mark     M324532
Siemens

But I want to merge the data so that all columns are visible but any value
that isn't relevant for a column is blank (>>>> represents blank in the
example). So the resulting set is:

ID        Name        Phone No    Mob Phone No        Make
----------------------------------------------------------------------------
-----
001     Fred          0123456      >>>>>>>>>>>>       >>>>>>>
002     James      >>>>>>>      M324531                  Nokia
003     Tom          0654321      >>>>>>>>>>>>        >>>>>>>
004     Mark         >>>>>>>      M324531                  Siemens

The result set can be read only if needs be.

Thanks


Neil
Technical Details
Message-ID: <3b792636_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,4544575fdb117cf6,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-08-14 06:41:06 PST
From: "Neil H" <neh@fasl.co.uk>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Merge 2 DataSets together
Date: Tue, 14 Aug 2001 14:23:28 +0100
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 212.125.84.166
Message-ID: <3b792636_1@dnews>
X-Trace: dnews 997795382 212.125.84.166 (14 Aug 2001 06:23:02 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews