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.
PostgreSQL Schema vs Database: Which Should Separate Your Modules or Tenants?

PostgreSQL Schema vs Database: Which Should Separate Your Modules or Tenants?

Comments
10 min read
MySQL Generated Columns: VIRTUAL vs STORED, and Which One to Index

MySQL Generated Columns: VIRTUAL vs STORED, and Which One to Index

Comments
9 min read
PostgreSQL DROP TABLE CASCADE: What It Drops, and What It Leaves Broken

PostgreSQL DROP TABLE CASCADE: What It Drops, and What It Leaves Broken

Comments
9 min read
Azure SQL Reserved Capacity in 2026: How a $736/Month Database Drops to $200

Azure SQL Reserved Capacity in 2026: How a $736/Month Database Drops to $200

Comments
4 min read
Customer hierarchies with WITH RECURSIVE - finding cycles and group totals in a Uniface service

Customer hierarchies with WITH RECURSIVE - finding cycles and group totals in a Uniface service

Comments
4 min read
Working with JSON in SQL Server: OPENJSON, JSON_VALUE and FOR JSON

Working with JSON in SQL Server: OPENJSON, JSON_VALUE and FOR JSON

Comments
3 min read
Translating Chinese Characters to Pinyin with UDFs in GBase 8a

Translating Chinese Characters to Pinyin with UDFs in GBase 8a

Comments
2 min read
How to import a CSV file into MySQL, PostgreSQL, SQL Server and SQLite (4 ways)

How to import a CSV file into MySQL, PostgreSQL, SQL Server and SQLite (4 ways)

Comments
4 min read
Get data out of a .sql dump without restoring it

Get data out of a .sql dump without restoring it

Comments
4 min read
A dunning run with preview, interval and customer block - plain SQL in a Uniface service

A dunning run with preview, interval and customer block - plain SQL in a Uniface service

Comments
7 min read
Your Power BI grand total is lying to you

Your Power BI grand total is lying to you

Comments
2 min read
Mapping All 33,354 U.S. ZIP Codes of FY 2027 HUD Fair Market Rents vs. Census Home Values in Read-Only SQLite

Mapping All 33,354 U.S. ZIP Codes of FY 2027 HUD Fair Market Rents vs. Census Home Values in Read-Only SQLite

Comments
5 min read
Handling a shard-key lookup across two databases

Handling a shard-key lookup across two databases

Comments
4 min read
Stop counting N+1 queries by eye — one rule finds them all

Stop counting N+1 queries by eye — one rule finds them all

Comments
6 min read
Datasette-Charts: SQL Aggregation as the Visualization Compiler

Datasette-Charts: SQL Aggregation as the Visualization Compiler

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