So I have learned to join tables in SQL like this:
SELECT data1, data2 FROM table1, table2 WHERE table1.ID = table2.ID
Having problems with a task I researched and found sites that taught to use
SELECT table1.data1, table2.data2
FROM table1
INNER JOIN table2 ON table1.ID = table2.ID
Is there a difference between the two or do they just do the same? Which one should I use?