I've been playing around with some datasets locally in Python, and am now trying to replicate the same results in a cloud environment with SQL.
I have 3 tables, each with multiple duplicate IDs. For example, table A will contain IDs a, b, c, d, ..., table B will contain IDs a, c, e, a1, a2 ..., and table C will contain IDs d, f, a2, b1, b2, ...
I am currently doing pd.merge for table A and table B on ID a, and table C with the resulting table from the first merge on ID a2. On using pd.merge, I noticed that it would add a _x or a _y to the duplicate IDs (by that, I mean in the first pd.merge of table A and table B, c from table A would become c_x, and c from table B would become c_y and so on for any other duplicate IDs. The same would apply to any other duplicate IDs for any joins.
How would I be able to replicate this process and bypass the issue with duplicate IDs in SQL?