SQL differences
CAST to INTEGER Fails on MySQL and Rounds Differently on SQLite and PostgreSQL
Turning a price into a whole number with CAST(5.7 AS INTEGER) gives 5 on SQLite and 6 on PostgreSQL and MariaDB. MySQL doesn’t run it at all. SQLite drops the fraction …