DEV Community

SQL for Analysts Series' Articles

Back to Michael Nocito's Series
How to Comment SQL So It Teaches

How to Comment SQL So It Teaches

Comments
12 min read
How to Set Up a SQL Database for Beginners

How to Set Up a SQL Database for Beginners

Comments
6 min read
The SQL CASE Expression, Explained for Beginners

The SQL CASE Expression, Explained for Beginners

Comments
9 min read
COUNT in SQL, Explained for Beginners

COUNT in SQL, Explained for Beginners

Comments
6 min read
SQL JOINs: How to Join Two Tables Without Losing or Doubling Rows

SQL JOINs: How to Join Two Tables Without Losing or Doubling Rows

Comments 1
17 min read
SQL Aliases: How to Read a Query Out Loud

SQL Aliases: How to Read a Query Out Loud

Comments
13 min read
SQL CTEs: How to Build a Query in Steps You Can Check

SQL CTEs: How to Build a Query in Steps You Can Check

Comments
12 min read
SQL Foundations, Start to Finish

SQL Foundations, Start to Finish

Comments
15 min read
GROUP BY and HAVING: How to Summarize Rows Without Getting a Fake Answer

GROUP BY and HAVING: How to Summarize Rows Without Getting a Fake Answer

Comments
13 min read
SQL Window Functions: How to Get the Top Row Per Group

SQL Window Functions: How to Get the Top Row Per Group

Comments
16 min read
How to Comment in SQL: -- and /* */, and the Two Traps That Break a Query

How to Comment in SQL: -- and /* */, and the Two Traps That Break a Query

Comments
9 min read
COMMENT ON TABLE: How to Store a Table Description in the Database Itself

COMMENT ON TABLE: How to Store a Table Description in the Database Itself

Comments
6 min read
SQL Comment Syntax by Database: MySQL, PostgreSQL, SQL Server, SQLite, Oracle

SQL Comment Syntax by Database: MySQL, PostgreSQL, SQL Server, SQLite, Oracle

Comments
5 min read
How to Find Duplicate Rows in SQL (and Decide What Counts as One)

How to Find Duplicate Rows in SQL (and Decide What Counts as One)

Comments
15 min read
Month-over-Month Growth in SQL: LAG, the Growth Formula, and the Traps

Month-over-Month Growth in SQL: LAG, the Growth Formula, and the Traps

Comments
15 min read
NULL in SQL: Why = NULL Finds Nothing and What to Write Instead

NULL in SQL: Why = NULL Finds Nothing and What to Write Instead

Comments
14 min read
Which SQL Database Should You Install?

Which SQL Database Should You Install?

Comments
6 min read
Customer Segmentation in SQL With CASE WHEN

Customer Segmentation in SQL With CASE WHEN

Comments
14 min read
Where to Get a Sample Database to Practice SQL (And How to Check It Loaded)

Where to Get a Sample Database to Practice SQL (And How to Check It Loaded)

Comments
13 min read
How to Practice SQL Online With Nothing Installed (And Where Your Data Goes)

How to Practice SQL Online With Nothing Installed (And Where Your Data Goes)

Comments
11 min read
How to Export SQL Results to CSV and Excel (Without Wrecking the Data)

How to Export SQL Results to CSV and Excel (Without Wrecking the Data)

Comments
10 min read
How to Install PostgreSQL for Beginners (And Whether You Need To)

How to Install PostgreSQL for Beginners (And Whether You Need To)

Comments
11 min read
How to Set Up DuckDB (Run SQL on a CSV With No Import Step)

How to Set Up DuckDB (Run SQL on a CSV With No Import Step)

Comments
10 min read