I get frustrated time and again by the fact that join variables need to have identical names in both datasets for Stata to perform the join, so finally I decided to ask.
In SQL, names don't matter as long as I specify, which variables to match on e.g. "SELECT * FROM a, b WHERE a.v1 = b.v2"
Why can't it work in similar fashion in Stata? I'd appreciate any explanations that could soothe my pain over this issue.
Related Posts with Joining when the join variable has a different name in two datasets
Stata not storing my matrix in MataHi all, I am running the code of DLW (2012) with using Stata 15. The command is meant to generate a…
Advice Regarding Working With Hierarchical DataI have a dataset of identifiers that are hierarchical - e.g., a given identifier can have a parent i…
Deflating Brent Crude Oil Prices ($US) with US CPII currently have Brent Crude Oil prices in US dollars. However, I'd like to deflate it with US CPI s…
Help: Can't format xtline plotDear community, I'm having three simple issues with with an 'xtline' plot. My plot looks as follow…
Missing marital status between yearsHi all, What I am trying to do is identify all people who have reported being married but for two o…
Subscribe to:
Post Comments (Atom)
0 Response to Joining when the join variable has a different name in two datasets
Post a Comment