DEV Community

select * from SQL

Posts on tips and tricks, using and learning about SQL for database development and analysis.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
ROW_NUMBER vs RANK vs DENSE_RANK: one of them silently duplicates your Top-N

ROW_NUMBER vs RANK vs DENSE_RANK: one of them silently duplicates your Top-N

Comments
4 min read
The NOT IN trap: why your SQL query returns zero rows

The NOT IN trap: why your SQL query returns zero rows

Comments
3 min read
SqlStealthRogue: a zero-probe SQL and NoSQL data dumper

SqlStealthRogue: a zero-probe SQL and NoSQL data dumper

Comments
2 min read
Cleaning and Analyzing Tembo Hotel's Bookings

Cleaning and Analyzing Tembo Hotel's Bookings

2
Comments
27 min read
Your AI SQL Tool Doesn’t Have an “Undo Logic” Button – That’s the Real Problem

Your AI SQL Tool Doesn’t Have an “Undo Logic” Button – That’s the Real Problem

5
Comments
2 min read
How a Fox and a Single Quote Broke the Critter Gallery — SQLi in Intigriti Challenge 0926

How a Fox and a Single Quote Broke the Critter Gallery — SQLi in Intigriti Challenge 0926

1
Comments
3 min read
Storing Billions of Webhook Audit Logs in PostgreSQL: Partitioning, Indexing, Compression, and Retention

Storing Billions of Webhook Audit Logs in PostgreSQL: Partitioning, Indexing, Compression, and Retention

1
Comments 1
22 min read
Database Modeling of a Music Marketplace. Part 1

Database Modeling of a Music Marketplace. Part 1

1
Comments 1
8 min read
SQL Ties Python at 58%: What It Means for Data Engineer Interviews

SQL Ties Python at 58%: What It Means for Data Engineer Interviews

Comments
8 min read
How I stream row changes out of SQLite without touching the app (reading the WAL)

How I stream row changes out of SQLite without touching the app (reading the WAL)

Comments
4 min read
The Semantic Compression Problem: Engineering AI-Ready Views for Complex SQL

The Semantic Compression Problem: Engineering AI-Ready Views for Complex SQL

Comments 1
10 min read
SQL Joins Explained in Detail

SQL Joins Explained in Detail

Comments
4 min read
What Building an LLM-Offloaded Query Layer Taught Me

What Building an LLM-Offloaded Query Layer Taught Me

1
Comments 1
16 min read
Three Orders In, Three Rows Out, 42.9% More Revenue

Three Orders In, Three Rows Out, 42.9% More Revenue

Comments
5 min read
Window Functions, Joins, CTEs and Subqueries in SQL: A Hospital Dataset Walkthrough.

Window Functions, Joins, CTEs and Subqueries in SQL: A Hospital Dataset Walkthrough.

Comments
9 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.