DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Tue Feb 17, 2004 12:23 pm Reply with quote    Back to top    

TWlzdGVycywNCmlzIGl0IHBvc3NpYmxlIHRvIG1ha2UgYSBVTklPTiBiZXR3ZWVuIHRvIHN0cmVh
bXM/DQpUa3MsDQpBbGV4DQo=

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Tue Feb 17, 2004 12:39 pm Reply with quote    Back to top    

DQpoaSwNCg0KY2FuIHlvdSBiZSBtb3JlIHNwZWVjaWZpYyA/DQp5b3UgY2FuIG1ha2UgYSBVTklP
TiB1c2luZyBhIHN0cmVhbSBhbmQgYSByZWZlcmVuY2UgbGluaw0KDQpyZWdhcmRzDQpSdWkgU29h
cmVzDQpTZW5pb3IgQ29uc3VsdGFudA0KLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4u
Li4NCk5vdmFiYXNlDQpSdWkuU29hcmVzQE5vdmFiYXNlLnB0DQpUbG0gOiArMzUxIDk2IDM0NzA4
NDANCg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogQWxleCBNYXJ0aW5zIFtt
YWlsdG86QWxleEBwcm9pdC5jb20uYnJdDQpTZW50OiB0ZXLDp2EtZmVpcmEsIDE3IGRlIEZldmVy
ZWlybyBkZSAyMDA0IDE4OjIzDQpUbzogZGF0YXN0YWdlLXVzZXJzQG9saXZlci5jb20NClN1Ympl
Y3Q6IFVOSU9OPw0KDQoNCk1pc3RlcnMsDQppcyBpdCBwb3NzaWJsZSB0byBtYWtlIGEgVU5JT04g
YmV0d2VlbiB0byBzdHJlYW1zPw0KVGtzLA0KQWxleA0K

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Tue Feb 17, 2004 1:42 pm Reply with quote    Back to top    

A UNION is the elimination of duplicates. Search the archives (www.dsxchange.com) for these terms. It is better, if possible, to form the UNION before the rows reach DataStage, because that was DataStage will have the smallest possible number of rows to process.
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Tue Feb 17, 2004 2:02 pm Reply with quote    Back to top    

VmFzY28sDQpJIHRoaW5rIGEgcmVmZXJlbmNlIGxpbmsgd29uwrR0IHdvcmsuIEnCtG0gdGhpbmsg
b24gMiBzdHJlYW1zIHdpdGggMTAgbGluZXMgdHVybmluZyBpbnRvIGEgc3RyZWFtIHdpdGggMjAg
bGluZXMuDQpDb3JyZWN0IG1lIGlmIEkgYW0gd29ybmcsIGJ1dCByZWZlcmVuY2VzIGRvbsK0dCBh
ZGQgbGluZXMgdG8gdGhlIHN0cmVhbS4NCkF0ZW5jaW9zYW1lbnRlLA0KQWxleA0KDQoJLS0tLS1N
ZW5zYWdlbSBvcmlnaW5hbC0tLS0tIA0KCURlOiBWYXNjbyBMdWlzIENhcnZhbGhvIFttYWlsdG86
dmFzY28ubC5jYXJ2YWxob0B0dmNhYm8ucHRdIA0KCUVudmlhZGE6IHRlciAxNy8wMi8yMDA0IDE1
OjM5IA0KCVBhcmE6IERhdGFTdGFnZSBVc2VycyBEaXNjdXNzaW9uIExpc3QgDQoJQ2M6IA0KCUFz
c3VudG86IFJFOiBVTklPTj8NCgkNCgkNCg0KDQoJaGksDQoJDQoJY2FuIHlvdSBiZSBtb3JlIHNw
ZWVjaWZpYyA/DQoJeW91IGNhbiBtYWtlIGEgVU5JT04gdXNpbmcgYSBzdHJlYW0gYW5kIGEgcmVm
ZXJlbmNlIGxpbmsNCgkNCglyZWdhcmRzDQoJUnVpIFNvYXJlcw0KCVNlbmlvciBDb25zdWx0YW50
DQoJLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4NCglOb3ZhYmFzZQ0KCVJ1aS5T
b2FyZXNATm92YWJhc2UucHQNCglUbG0gOiArMzUxIDk2IDM0NzA4NDANCgkNCgkNCgktLS0tLU9y
aWdpbmFsIE1lc3NhZ2UtLS0tLQ0KCUZyb206IEFsZXggTWFydGlucyBbbWFpbHRvOkFsZXhAcHJv
aXQuY29tLmJyXQ0KCVNlbnQ6IHRlcsOnYS1mZWlyYSwgMTcgZGUgRmV2ZXJlaXJvIGRlIDIwMDQg
MTg6MjMNCglUbzogZGF0YXN0YWdlLXVzZXJzQG9saXZlci5jb20NCglTdWJqZWN0OiBVTklPTj8N
CgkNCgkNCglNaXN0ZXJzLA0KCWlzIGl0IHBvc3NpYmxlIHRvIG1ha2UgYSBVTklPTiBiZXR3ZWVu
IHRvIHN0cmVhbXM/DQoJVGtzLA0KCUFsZXgNCgkNCg0K

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Wed Feb 18, 2004 4:06 pm Reply with quote    Back to top    

U29ycnkgUmF5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QpQaGls
YWRlbHBoaWEJUEEJMTkxNDItMDg1OA0KDQoNCg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0t
LQ0KRnJvbTogUmF5IFd1cmxvZCBbbWFpbHRvOnJheXdAbWluZGxlc3MuY29tXQ0KU2VudDogVHVl
c2RheSwgRmVicnVhcnkgMTcsIDIwMDQgMjo0MyBQTQ0KVG86IERhdGFTdGFnZSBVc2VycyBEaXNj
dXNzaW9uIExpc3QNClN1YmplY3Q6IFJFOiBVTklPTj8NCg0KDQpBIFVOSU9OIGlzIHRoZSBlbGlt
aW5hdGlvbiBvZiBkdXBsaWNhdGVzLiAgU2VhcmNoIHRoZSBhcmNoaXZlcyAod3d3LmRzeGNoYW5n
ZS5jb20pIGZvciB0aGVzZSB0ZXJtcy4gIEl0IGlzIGJldHRlciwgaWYgcG9zc2libGUsIHRvIGZv
cm0gdGhlIFVOSU9OIGJlZm9yZSB0aGUgcm93cyByZWFjaCBEYXRhU3RhZ2UsIGJlY2F1c2UgdGhh
dCB3YXMgRGF0YVN0YWdlIHdpbGwgaGF2ZSB0aGUgc21hbGxlc3QgcG9zc2libGUgbnVtYmVyIG9m
IHJvd3MgdG8gcHJvY2Vzcy4NCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fDQpkYXRhc3RhZ2UtdXNlcnMgbWFpbGluZyBsaXN0DQpkYXRhc3RhZ2UtdXNlcnNA
b2xpdmVyLmNvbQ0KaHR0cDovL3d3dy5vbGl2ZXIuY29tL21haWxtYW4vbGlzdGluZm8vZGF0YXN0
YWdlLXVzZXJzDQo=

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted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m9ybSB0aGUgVU5JT04gYmVmb3JlIHRoZSByb3dzIHJlYWNoIERhdGFTdGFnZSwgYmVjYXVzZSB0
aGF0IHdhcyBEYXRhU3RhZ2Ugd2lsbCBoYXZlIHRoZSBzbWFsbGVzdCBwb3NzaWJsZSBudW1iZXIg
b2Ygcm93cyB0byBwcm9jZXNzLg0KCV9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fDQoJZGF0YXN0YWdlLXVzZXJzIG1haWxpbmcgbGlzdA0KCWRhdGFzdGFnZS11
c2Vyc0BvbGl2ZXIuY29tDQoJaHR0cDovL3d3dy5vbGl2ZXIuY29tL21haWxtYW4vbGlzdGluZm8v
ZGF0YXN0YWdlLXVzZXJzDQoJDQoNCg==

_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Rate this response:  
Not yet rated
admin
Site Admin



Joined: 12 Jan 2003
Posts: 8720

Points: 10

Post Posted: Wed Feb 18, 2004 9:34 pm Reply with quote    Back to top    

select * from table_a
union all
select * from table_b

will give you all rows in table_a and table_b

select * from table_a
union
select * from table_b

will merge table_a and table_b and then do a distinct


Daniel, can you please state what it is you are trying
to accomplish, and give some indication as to the data
volumes in play on the two sources. High volumes will
be handled differently from small volumes, as they
often require a more elegant solution. Feel free to
post this on www.dsxchange.com if you want to share
with that community.

-Ken



--- Alex Martins wrote:
> Sorry Daniel,
> I almost disagree. Union can remove duplicated rows
> in the 2 sets; just Union All includes them.
> Smile
> Tks for the union example indication.
>
>
> -----Mensagem original-----
> De: Sutton, Daniel A
> [mailto:daniel.a.sutton@boeing.com]
> Enviada: qua 18/02/2004 19:06
> Para: DataStage Users Discussion List
> Cc:
> Assunto: RE: UNION?
>
>
>
> Sorry Ray. I disagree. A UNION is the
> concatenation of two tables, that have the same
> columns. It inherently has nothing to do with
> duplicate rows, although this process may create
> duplicate within the resultant table.
>
> Searching dsxchange is a good idea, since there is
> a solid example of how to use DS designer to do
> this.
>
> Daniel A. Sutton Associate Technical Fellow,
> Boeing Navigator
> Hierarchical Databases, Data Warehouse, and
> Migration Control Group
>
> To be in a dialogue, we must listen from where the
> other person speaks.
> Otherwise, we only have two monologues
>
> Boeing Philadelphia IS/Data Management
> 610-591-7124 610-591-7524(fax) 800-946-4646
> pwd 1499533(beeper)
>
> email: daniel.a.sutton@boeing.com
>
> Regular Mail Address:
> Boeing
> PO Box 16858 MS-P29-29
> Philadelphia PA 19142-0858
>
>
>
>
> -----Original Message-----
> From: Ray Wurlod [mailto:rayw@mindless.com]
> Sent: Tuesday, February 17, 2004 2:43 PM
> To: DataStage Users Discussion List
> Subject: RE: UNION?
>
>
> A UNION is the elimination of duplicates. Search
> the archives (www.dsxchange.com) for these terms.
> It is better, if possible, to form the UNION before
> the rows reach DataStage, because that was DataStage
> will have the smallest possible number of rows to
> process.
> _______________________________________________
> datastage-users mailing list
> datastage-users@oliver.com
>
>
http://www.oliver.com/mailman/listinfo/datastage-users
>
>
> > _______________________________________________
> datastage-users mailing list
> datastage-users@oliver.com
>
http://www.oliver.com/mailman/listinfo/datastage-users
>


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
datastage-users mailing list
datastage-users@oliver.com
http://www.oliver.com/mailman/listinfo/datastage-users

_________________
PLEASE READ
Do not contact admin unless you have technical support or account questions. Do not send email or Private Messages about discussion topics to ADMIN. Contact the webmaster concerning abusive or offensive posts.
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours