Categories / sql
Finding All Customers Who've Placed Two Types of Orders Using a Handrolled Pivot Approach
Grouping Data from 3 SQL Tables: A Step-by-Step Guide
Overcoming Postgres JSON Agg Limitation Workarounds: Flexible Solutions for Aggregating JSON Data
Exploring MySQL Grouping Concats: A Case Study of Using `LAG()` and User-Defined Variables
Accessing BigQuery Table Metadata in DBT using Jinja
Understanding Case Statements in SQL Queries: A Deep Dive into the `COALESCE` Function
Azure SQL DB - Added Size Restriction on NVARCHAR Column and the Size of My DB Bloating: A Deep Dive
Mastering SQL Date Literals and String Concatenation: A Guide to Avoiding Pitfalls and Writing Portable Queries
Retrieving Rows Between Two Dates in PostgreSQL Using Date Operators
Updating Values Based on Flags: A Guide to Efficient Updates Using SQL Conditionals