MySQL Forums
Forum List  »  Newbie

Re: In JOIN, what happens two of the same id name appears?
Posted by: Mike M
Date: March 01, 2021 12:12PM

Hi Peter,

When I SELECT then JOIN accounts.id and web_accounts.id, only accounts.id shows up. Why web_accounts.id choose to disappear, why not accounts.id?

My guess is this line:
> JOIN accounts ON web_events.account_id = accounts.id

Here, accounts is the MAIN table everyone is merging into. So, accounts.id dominates over other duplicated column name.


BTW, is there a mailing list to his forum, so I can reply from email?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.