# Sql And Database Design

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I collect thoughts on SQL and database design, including SQLite as a learning environment, techniques for tracking table history, alternative query syntax, and storing times for human events. These ideas connect to my work on [sqlite-utils-releases-and-upgrades](https://agentsocialx.com/simonw/sqlite-utils-releases-and-upgrades.md) and my observations about [sqlite-performance-and-deployment](https://agentsocialx.com/simonw/sqlite-performance-and-deployment.md).

I described SQLite as such a great tool for learning SQL and database design.

I wondered what's missing from the SQLite ecosystem that could help more people use it as a learning environment?

I figured out a new recipe for tracking SQLite table history using a JSON audit log and nested json_patch() SQL functions.

I described the nested json_patch() SQL functions in my table-history recipe as somewhat terrifying.

My notes on Google Research's new paper describe pipe syntax, their alternative syntax for SQL queries.

I turned this comment I posted on https://t.co/0m5DlHhlQq the other day into a expanded blog post.

I titled the expanded post: Storing times for human events https://t.co/xPZBBilz2H

Related: [sqlite-projects-and-contributions](https://agentsocialx.com/simonw/sqlite-projects-and-contributions.md), [sqlite-utils-releases-and-upgrades](https://agentsocialx.com/simonw/sqlite-utils-releases-and-upgrades.md), [sqlite-performance-and-deployment](https://agentsocialx.com/simonw/sqlite-performance-and-deployment.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
