Start here
Left Outer Join vs Right Outer Join in SQL
A left outer join keeps every row from the first table, and a right outer join keeps every row from the second. Examples of both, and when to use each.
SQL and databases
Guides to writing SQL queries, designing databases, comparing MySQL and MariaDB, and building data warehouses with ETL.
94 in-depth guides 20 topics Nov 2026 latest guide
Featured guides
Each one links on to more specific articles in its topic.
Start here
A left outer join keeps every row from the first table, and a right outer join keeps every row from the second. Examples of both, and when to use each.
Learn how GROUP BY works with INNER JOIN in MySQL, with a worked example, clause order, HAVING filters, LEFT JOIN and the ONLY_FULL_GROUP_BY error.
Learn how to use a CASE expression in an UPDATE query in SQL Server to set different values by condition, keep current values, and avoid NULL mistakes.
Learn how to get an average for each row in SQL, across columns in the same row or per group with AVG(), with NULL-safe examples and common mistakes.
Learn how to merge two columns in SQL Server with +, CONCAT() and CONCAT_WS(), handle NULLs and spacing, and avoid common type errors in your queries.
Browse
Joins, CASE, GROUP BY, inserts, data types and the everyday query patterns behind them.
Data models, keys, DBMS languages, transactions and the people who design databases.
Storage engines, version comparisons and recovering lost data in real database servers.
How warehouses are built, loaded, tested and used for business decisions.