# Explain (jamalhansen.com) > Short explanations of SQL concepts for Python developers, one concept per page, written to be read by people and by AI assistants. By Jamal Hansen. Each link is the plain Markdown version of a page; drop `index.md` for the HTML page. ## SQL SQL concepts explained for Python developers, from the SQL for Python Developers series. Index: https://jamalhansen.com/explain/sql/llms.txt - [An INNER JOIN drops rows with no match; a LEFT JOIN keeps them](https://jamalhansen.com/explain/sql/inner-join-drops-unmatched-rows/index.md): Why are customers with no orders missing from my SQL join? An INNER JOIN returns only rows that match in both tables; a LEFT JOIN returns every row from the left table and fills the right table's columns with NULL where nothing matches. - [Every column in a GROUP BY query must be grouped or aggregated](https://jamalhansen.com/explain/sql/group-by-golden-rule/index.md): Why does SQL say my column must appear in the GROUP BY clause or be used in an aggregate function? With GROUP BY, the database doesn't know which value to show for each group, so every column in SELECT has to be in the GROUP BY clause or inside an aggregate such as COUNT or SUM. - [In SQL, NULL means unknown, so = NULL never matches](https://jamalhansen.com/explain/sql/null-means-unknown/index.md): Why does WHERE column = NULL return no rows? NULL is not a value: it means unknown, and you can't know if two unknowns are equal, so use IS NULL, and remember that != also drops NULL rows. - [SQL describes the result you want, not the loop that builds it](https://jamalhansen.com/explain/sql/sql-describes-the-result-not-the-steps/index.md): How do I stop thinking in for loops when I write SQL? SQL is declarative: a SELECT names what to return, where it comes from, and how to filter it, the same three parts as a Python list comprehension, and the database picks the steps. - [Window functions aggregate across rows without collapsing them](https://jamalhansen.com/explain/sql/window-functions-keep-every-row/index.md): How do I add a running total or a rank per group in SQL and keep every row? GROUP BY collapses each group into one row; a window function such as SUM() OVER (PARTITION BY ... ORDER BY ...) keeps every row and adds the group's running total or rank beside it.