I have a question. I have 2 tables and I want to inner join from left to right.
The left table contains a foreign key from the right table and it has his own primary key.
Should I join with the primary key + foreign key from the left table since I got the foreign key which has a connection to the right table?
Like for example
ON (left table primary key = left table foreign key)
But I can also use the left and the right table primary keys but what is then the different
ON (left table primary key = right table primary key)