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.
Which Tables Reference This Table? Finding Incoming Foreign Keys in PostgreSQL, MySQL, SQL Server and SQLite

Which Tables Reference This Table? Finding Incoming Foreign Keys in PostgreSQL, MySQL, SQL Server and SQLite

Comments
8 min read
PostgreSQL json vs jsonb: Which to Use, and What Converting a Live Column Costs

PostgreSQL json vs jsonb: Which to Use, and What Converting a Live Column Costs

Comments
11 min read
SQLite STRICT Tables: Should You Use Them, and What Converting an Existing Table Breaks

SQLite STRICT Tables: Should You Use Them, and What Converting an Existing Table Breaks

Comments
9 min read
MySQL DATETIME vs TIMESTAMP: Which to Use, and What Converting a Column Does to Its Values

MySQL DATETIME vs TIMESTAMP: Which to Use, and What Converting a Column Does to Its Values

Comments
8 min read
Databases for app developers: the 20% you use every day

Databases for app developers: the 20% you use every day

Comments
11 min read
PostgreSQL torn-page detection and protection

PostgreSQL torn-page detection and protection

5
Comments
17 min read
Enforce SQL Formatting with pre-commit and GitHub Actions

Enforce SQL Formatting with pre-commit and GitHub Actions

1
Comments
10 min read
Semantic SQL in Practice: Jev, Databricks AI Functions, and Snowflake Cortex

Semantic SQL in Practice: Jev, Databricks AI Functions, and Snowflake Cortex

Comments
13 min read
Foundry Agent Webapps: Cosmos or Azure SQL for Backend State, and When?

Foundry Agent Webapps: Cosmos or Azure SQL for Backend State, and When?

Comments
7 min read
Why Naive Cohort Survival Queries Hallucinate a 40% Risk Drop (Plus Landmarking in Python)

Why Naive Cohort Survival Queries Hallucinate a 40% Risk Drop (Plus Landmarking in Python)

Comments
7 min read
Find login streaks in SQL with the gaps-and-islands trick (PostgreSQL and SQLite)

Find login streaks in SQL with the gaps-and-islands trick (PostgreSQL and SQLite)

Comments
7 min read
SQL vs NoSQL: Which One Should You Use?

SQL vs NoSQL: Which One Should You Use?

Comments
5 min read
Spring Data JPA N+1 queries: find them, fix them, test them

Spring Data JPA N+1 queries: find them, fix them, test them

Comments
12 min read
Database Indexes: The Back Page of the Book

Database Indexes: The Back Page of the Book

Comments
4 min read
When LOWER makes a SQLite search miss its own text

When LOWER makes a SQLite search miss its own text

Comments
4 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.