Skip to content
Noteshch-log
AboutSupport
< Back to notes

Browse 4 notes tagged SQL.

#SQL

Why does the next page repeat a row? OFFSET and keyset pagination

Trace five rows through OFFSET and keyset pagination, then connect compound cursors to B-tree indexes, NULL handling, and the limits of changing data.

#PostgreSQL#database#pagination+1
2026-09-09

Before JOIN Syntax, Count the Relationship

Decide what one result row means and whether unmatched data stays first. Then choose INNER JOIN or LEFT JOIN without mistaking normal fanout for duplicates.

#PostgreSQL#database#SQL+2
2026-08-25

A SELECT Needs Four Decisions: Columns, Rows, Order, Limit

A reliable SQL query does more than retrieve data: name the columns, filter with WHERE, define an order with ORDER BY, then cap the result with LIMIT.

#PostgreSQL#database#SQL+2
2026-08-24

A Database Is Not a JSON Blob: Let Constraints Protect Data

Tables, keys, and constraints form a shared data contract. Frontend validation improves UX; the database must reject impossible writes.

#PostgreSQL#database#SQL+2
2026-08-23
Copyright ©2025-2026 hch-log.com. All rights reserved.
Written by Hung-Chih Hsueh ↗ · g3n-data ↗ · All links ↗
Support on Ko-fiAboutPrivacy Policy

Google services settings

Analytics and advertising stay off until you choose.

En中文