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
Cohort Retention Analysis in SQL, Step by Step

Cohort Retention Analysis in SQL, Step by Step

Comments
14 min read
SQL Date Functions: How to Group by Month Without Losing One

SQL Date Functions: How to Group by Month Without Losing One

Comments
16 min read
Funnel Conversion in SQL, and the Step That Shows 100%

Funnel Conversion in SQL, and the Step That Shows 100%

Comments
14 min read
When to Index a Table: A Practical Guide for Analysts

When to Index a Table: A Practical Guide for Analysts

Comments
15 min read
How to Reconcile Two Tables in SQL When the Row Counts Match

How to Reconcile Two Tables in SQL When the Row Counts Match

1
Comments
14 min read
Running Total in SQL: The Window Frame That Decides the Answer

Running Total in SQL: The Window Frame That Decides the Answer

Comments
14 min read
Subquery vs CTE in SQL: Same Logic, One You Can Check

Subquery vs CTE in SQL: Same Logic, One You Can Check

Comments
14 min read
Temp Table vs View in SQL: A Saved Answer or a Saved Question

Temp Table vs View in SQL: A Saved Answer or a Saved Question

Comments
13 min read
LIKE in SQL, Explained for Beginners

LIKE in SQL, Explained for Beginners

Comments
7 min read
One Cell, Many Values: When a Column Holds a List

One Cell, Many Values: When a Column Holds a List

Comments
8 min read