SQL Basics for MySQL Beginners: SELECT, JOIN and GROUP BY Explained
As a MySQL beginner you need three building blocks. SELECT reads rows from a table, with WHERE to filter, ORDER BY to sort and LIMIT to cap the number of rows. JOIN combines rows from related tables using matching key columns; INNER JOIN keeps only matches and LEFT JOIN keeps every row from the left table.