I have 2 tables: Users and Roles, and I have a table that joins these together. The only thing in the join table is Ids that link the 2 tables.
What should I call th
Indeed, use table aliases and select the columns with same names apart with the AS selector.
e.g. SELECT user.id AS user_id
SELECT user.id AS user_id