* [[SQL Tutorial - Essential SQL For The Beginners|https://www.sqltutorial.org/]], //helps you get started with SQL quickly and effectively through many practical examples.//
* [[SQL Server reverse order after using desc|https://stackoverflow.com/questions/12534248/sql-server-reverse-order-after-using-desc]] --- just use a subselect subquery, `SELECT * FROM (... ORDER BY x DESC) _ ORDER BY x ASC`
* [[How to count instances of character in SQL Column|https://stackoverflow.com/questions/1860457/how-to-count-instances-of-character-in-sql-column#1860478]] --- `SELECT LEN(col) - LEN(REPLACE(col, 'x', ''))`
** [[SQL String: Counting Words inside a String|https://stackoverflow.com/questions/41952250/sql-string-counting-words-inside-a-string]] --- various methods more specially catered for counting words, than the naive space counting
** Note: for counting in many rows together, the `SUM()` function must be used, [[or else you will go mad like me|https://chat.openai.com/share/5883b4c6-37cf-40e3-b735-9cd52b26020c]]
* [[Copying data from one SQLite database to another|https://stackoverflow.com/questions/2359205/copying-data-from-one-sqlite-database-to-another/40353567#40353567]] --- best way is probably `sqlite3 old.sqlite ".dump { names of tables }" | sqlite3 new.sqlite`