What is the difference bettween
SELECT a.AccountId FROM Accounts AS a JOIN domain as d;
and
SELECT a.AccountId
FROM Accounts AS a JOIN domain as d WHERE a.AccountId=d.AccountId;
I thought JOIN is an inner join which only matches when the left AccountId is == to the right AccountId. Wouldn't the above be exactly the same? I got different results when typing it into MySQL (command line).