Inner join between three tables fails #290
-
I have three tables (transactions, labels, categories) that I would need to join for data acquisition. I use the following code:
All three tables have the column id which is why I set the as property on both. But stillt - this does not work and gives error:
Apart from giving them individual id column names: what can I do about it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
its clear from the exception thrown that column Name exist in table - just rename column the below query should work -
|
Beta Was this translation helpful? Give feedback.
-
Oh, sure, you're right - I didn't see that and just focused on the id column. Thanks! |
Beta Was this translation helpful? Give feedback.
its clear from the exception thrown that column Name exist in table -
labels
&categories
and that's why query can not be completed.just rename column
name
usingas
option similar to how you are doing forid.
the below query should work -