[sql] SQL JOIN and different types of JOINs