Join Stage as a Venn Diagram

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
John Corbin
Premium Member
Premium Member
Posts: 12
Joined: Fri Jun 13, 2008 2:51 pm

Join Stage as a Venn Diagram

Post by John Corbin »

Hi

Saw nothing on this particular question so here goes.

I am to give a lecture/demonstration on the use of a Join Stage to some of our less experienced DS Users.

Start with the basics and show a Left Outer Join.

Can the results of a DataStage Join be shown in a Venn Diagram?

some people learn complex things if a picture can be used to show what is going on.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

The short answer is yes.

A Left Outer Join is the whole of the "left" circle (set), including the intersection with the "right" circle, and nothing else from the "right" circle.

This does not adequately show the substitution of NULL for column values that would have been returned from the "right" set had the join succeeded.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

This is one of my favorite links to use to explain joins - has Venn diagrams as well as data values to illustrate the basic process:

http://www.codinghorror.com/blog/2007/1 ... joins.html

However - please note that these are very simplistic diagrams that ignore some of the subtle aspects of what can occur in a SQL join (especially ones with duplicate key matches).
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
John Corbin
Premium Member
Premium Member
Posts: 12
Joined: Fri Jun 13, 2008 2:51 pm

Post by John Corbin »

Thanks for the excellent feedback and link.
Post Reply