sysop@hub:~/cheat-sheets/sql-basics-cheat-sheet$
sql-basics-cheat-sheet
Standard SQL that runs on PostgreSQL, MySQL, MariaDB, SQL Server and SQLite, with notes where they differ. The examples use two tables: users (id, name, email, department_id, created_at, active) and departments (id, name).