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.
GROUP BY In PostgreSQL

GROUP BY In PostgreSQL

1
Comments
3 min read
Convert Time Columns into Rows and Pivot into a New Cross Table

Convert Time Columns into Rows and Pivot into a New Cross Table

5
Comments
7 min read
SQL Concepts Using Hospital Data

SQL Concepts Using Hospital Data

Comments
15 min read
5 SQL Window-Function Exercises Taken From Real Business Problems

5 SQL Window-Function Exercises Taken From Real Business Problems

Comments
3 min read
Writing SQL in Go Without Losing Type Safety: An Introduction to sqlc

Writing SQL in Go Without Losing Type Safety: An Introduction to sqlc

Comments
2 min read
Your average response time is lying to you (use p95 and p99)

Your average response time is lying to you (use p95 and p99)

Comments
3 min read
How to Auto-Update an updated_at Column: MySQL ON UPDATE vs a Database Trigger vs the ORM

How to Auto-Update an updated_at Column: MySQL ON UPDATE vs a Database Trigger vs the ORM

Comments
10 min read
A Single SQL Constraint Can Save Your Database From Bad Data — Do You Know Which One?

A Single SQL Constraint Can Save Your Database From Bad Data — Do You Know Which One?

Comments
5 min read
Automatic maintenance tasks controls the automatic optimizer statistics

Automatic maintenance tasks controls the automatic optimizer statistics

Comments
4 min read
SQL Injection with SQLmap on Kali: From Login Form to Database

SQL Injection with SQLmap on Kali: From Login Form to Database

Comments
3 min read
DuckDB 2.0 shipped today. I ran its headline features — triggers work, VARIANT has a silent-NULL trap

DuckDB 2.0 shipped today. I ran its headline features — triggers work, VARIANT has a silent-NULL trap

Comments
5 min read
Julian Date Conversion in Code: YYDDD, CYYDDD, JD and MJD in Python, JavaScript, SQL and Excel

Julian Date Conversion in Code: YYDDD, CYYDDD, JD and MJD in Python, JavaScript, SQL and Excel

Comments
4 min read
SQL Interview Rounds: What to Expect and How to Prepare

SQL Interview Rounds: What to Expect and How to Prepare

Comments
1 min read
Database Indexing – Part 3: Understanding Composite Indexes in PostgreSQL

Database Indexing – Part 3: Understanding Composite Indexes in PostgreSQL

Comments
11 min read
Same SQL, Fast for One Value, Slow for Another

Same SQL, Fast for One Value, Slow for Another

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