What's the diference between CROSS JOIN and INNER JOIN? i.e.
table 1 +ID +NAME + LAST__NAME +-----+-----+----------- +1 +John + Doe +2 +Phil + Smith +3 +Jane + Peterson table2 +ID+Department +--+---------- +1 + TI +2 + Sales +3 + TI
SELECT *
FROM table1
INNER JOIN table2
ON table1.id=table2.id;
SELECT *
FROM table1
CROSS JOIN table2
I want to know what's the diference between results