there are two tables an and a column a_id in bdepartment b that stores table an id as a foreign key and has indexes
select * from a join b on a.id=b.a_id
question 1: is the above sql full table scan for a table and index for table b?
select * from b join a on a.id=b.a_id
question 2: is table b scanned and table a uses index in the above sql (order of an and b before and after join)?