What are the differences between these two SQL queries?
Query #1:
select mytab.name, mytab.age, films.title, films.author
from films, mytab
where films.id = mytab.id;
Query #2:
select mytab.name, mytab.age, films.title, films.author
from films inner join mytab
on films.id = mytab.id;
First is a normal SQL query using 'where' statement. The second is using inner join. The result of both queries is exactly the same.
films -> id, title author
mytab -> id, name, age
It`s the poorest example as is possible.
Here is analogical example : http://www.w3schools.com/sql/sql_join_inner.asp