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.
How to Convert Stripe Transaction Exports into Production SQL INSERTs

How to Convert Stripe Transaction Exports into Production SQL INSERTs

Comments
5 min read
I Built a SQL Detective Game. Here's What 3,000 Players Taught Me About Learning SQL

I Built a SQL Detective Game. Here's What 3,000 Players Taught Me About Learning SQL

Comments
5 min read
CAC payback for TikTok Shop should use customer cohorts, not campaign ROAS

CAC payback for TikTok Shop should use customer cohorts, not campaign ROAS

Comments
6 min read
How to Test a $10 Bank Reconciliation Gap in SQLite

How to Test a $10 Bank Reconciliation Gap in SQLite

1
Comments
3 min read
SQL Join Fanout: Why SUM(DISTINCT amount) Is Not the Fix

SQL Join Fanout: Why SUM(DISTINCT amount) Is Not the Fix

Comments
2 min read
Killing Deadlocks Before They Form: Wait-Die vs Wound-Wait Schemes

Killing Deadlocks Before They Form: Wait-Die vs Wound-Wait Schemes

Comments
2 min read
SQLAlchemy MissingGreenlet in Async Code: Fix Lazy Loading With selectinload, awaitable_attrs, or lazy="raise"

SQLAlchemy MissingGreenlet in Async Code: Fix Lazy Loading With selectinload, awaitable_attrs, or lazy="raise"

Comments
5 min read
BigQuery MERGE Is Not a Uniqueness Constraint: A Replay-Safe Tutorial

BigQuery MERGE Is Not a Uniqueness Constraint: A Replay-Safe Tutorial

Comments
3 min read
A created_at-only cursor lost 587 rows, even with clock_timestamp() and microseconds

A created_at-only cursor lost 587 rows, even with clock_timestamp() and microseconds

Comments
3 min read
Stop Using OFFSET for Pagination: Keyset Pagination Is 10,000x Faster on Deep Pages

Stop Using OFFSET for Pagination: Keyset Pagination Is 10,000x Faster on Deep Pages

Comments
3 min read
How to Use Databricks SQL With the VisuaLeaf Database Client

How to Use Databricks SQL With the VisuaLeaf Database Client

5
Comments
7 min read
SQL Server Multiple Cascade Paths (Error 1785): Which Foreign Key Loses ON DELETE CASCADE, and What Replaces It

SQL Server Multiple Cascade Paths (Error 1785): Which Foreign Key Loses ON DELETE CASCADE, and What Replaces It

Comments
11 min read
5 Reasons Your SQL Index Is Being Ignored (and How to Fix Them)

5 Reasons Your SQL Index Is Being Ignored (and How to Fix Them)

Comments
3 min read
SQL Challenge: Can You Build a Customer Report Using JOIN, GROUP BY and CASE WHEN?

SQL Challenge: Can You Build a Customer Report Using JOIN, GROUP BY and CASE WHEN?

Comments
2 min read
4 SQL NULL Traps That Silently Break Your Queries (NOT IN Returns 0 Rows!)

4 SQL NULL Traps That Silently Break Your Queries (NOT IN Returns 0 Rows!)

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