by eleog · 5y ago · 0 comments
More of sqlite's sloppyness is detailed here https://sqlite.org/src/wiki?name=StrictMode
Funnily enough, this is my favorite feature of sqlite that I wish other RDBMSs had :))
There is no easy equivalent to `SELECT order_id, status AS latest_status, MAX(updated_at) AS updated_at FROM orders GROUP BY order_id`. Well, it's possible, but for example in Postgres you need some silliness with nested queries, `PARTITION BY`, and `ROW_NUMBER()`.
Honestly, SQLite is a wonderful tool if properly used. Calling it "sloppy" is a disservice.