SQL Lesson 10: INSERT, UPDATE and DELETE Safely
Change data without disasters: INSERT rows, UPDATE with a WHERE you have tested, DELETE carefully, transactions with BEGIN/ROLLBACK/COMMIT, and habits that prevent “I updated…
Read article →Excel, SAP, Oracle & automation tips — plus wacky facts
Query data like a pro — explained for Excel users.
Change data without disasters: INSERT rows, UPDATE with a WHERE you have tested, DELETE carefully, transactions with BEGIN/ROLLBACK/COMMIT, and habits that prevent “I updated…
Read article →Filter and group by dates in SQL: ISO date format, month and year ranges, strftime/date functions in SQLite (and SQL Server/PostgreSQL equivalents), adding days,…
Read article →Use CASE to label rows (price bands, order sizes), count conditions side by side with SUM(CASE…), handle NULLs with readable labels, and build pivot-style…
Read article →Use a query inside a query: compare with an average, filter with IN and NOT IN, find the row with the maximum, query a…
Read article →Combine tables with JOIN: primary and foreign keys, INNER JOIN, table aliases, joining three tables, LEFT JOIN to find missing matches, and the duplicate-row…
Read article →Get totals per group with GROUP BY — customers per region, orders per status, sales per month — filter groups with HAVING, and know…
Read article →Summarise data with aggregate functions: COUNT(*) vs COUNT(column), SUM, AVG with ROUND, MIN and MAX on numbers and dates, filtering before aggregating, and how…
Read article →Sort SQL results with ORDER BY, ascending and descending, by several columns and by calculated values; get top-N lists with LIMIT, and understand why…
Read article →Filter rows in SQL with WHERE: comparison operators, AND/OR with brackets, IN, BETWEEN, LIKE with % and _, and IS NULL — the SQL…
Read article →Your first SQL queries: what tables, rows and columns are, install DB Browser for SQLite, SELECT columns, SELECT *, calculated columns with AS, DISTINCT…
Read article →Learn SQL from the very beginning: tables, SELECT, WHERE, ORDER BY, aggregates, GROUP BY, JOINs, NULLs, subqueries, CTEs, window functions and changing data —…
Read article →Learn SQL through tasks you already do in Excel — filters, sorting, pivot tables, VLOOKUP and remove duplicates — with 10 queries you can…
Read article →Bones are stronger than steel of the same weight.
Weight for weight, bone is remarkably strong, especially under compression, because of its mix of collagen and mineral.