September 2019
Beginner to intermediate
346 pages
7h 35m
English
A few readers may have been able to spot instances of one-to-many joins in the aforementioned examples in this chapter. Let me change the datasets that we use to discuss this join. After going through the example, I would encourage readers to look at the inner, left, right, and full join examples and see if they can spot instances of one-to-many joins.
Let's assume we have datasets X and Y:
Data X;Input ID VarTabA VarTabB;Datalines;1 66 772 55 663 77 55;Data Y;Input ID Category $ VarTabC VarTabD;Datalines;1 A 60 701 B 50 602 A 50 603 C 70 50;
The datasets formed with X and Y have the same ID variables. However, the Y dataset has an instance where the ID is repeated and has two different sets of values of VarTabC and VarTabD. ...
Read now
Unlock full access