SQL Basics Summary — Table Operations, WHERE, and Functions

A wrap-up of the SQL Basics series. Table definition, INSERT, SELECT, UPDATE, DELETE, filtering with WHERE, and transforming values with functions and CASE, organized with diagrams and tables.

The Big Picture of What SQL Basics Covered

This page organizes every command from the SQL Basics series into three views: table operations, filtering with WHERE, and transforming values with functions. Use the links to jump back to any article for review.

What You Can Do in SQL
AddINSERTTablerows & columnsChange / deleteUPDATE / DELETEReadSELECTShapeDISTINCT / ORDER BY / LIMITTransformfunctions / CASEaddupdate / deletereadshapetransform
INSERT / UPDATE / DELETE move rows in and out of a table; SELECT reads them, WHERE filters them, and functions / CASE transform them.

Set Up a Table and Move Data In and Out

The full data-handling flow: create a table → insert rows → read them → update / delete them. A SELECT result can then be tidied up with DISTINCT / ORDER BY / LIMIT.

CategoryArticleWhat you learn
Table definitionCreating and Modifying TablesCREATE TABLE / PRIMARY KEY / NOT NULL / ALTER TABLE
Adding rowsINSERTNamed columns, omitted columns, multi-row inserts
Reading rowsSELECTChoosing columns, AS aliases, WHERE basics
Updating / deleting rowsUPDATE and DELETEUpdating with SET; the danger of forgetting WHERE
Bulk deleteTRUNCATEDifference from DELETE, the high water mark
Shaping resultsDISTINCT, ORDER BY, LIMITDeduplication, sorting, row limits, OFFSET

Filter Rows with WHERE, Transform Values with Functions

WHERE keeps only the rows that match a condition, while functions and CASE transform or classify the column values themselves. The two diagrams below organize the three WHERE deep-dive articles and the six function articles respectively.

Filtering Rows with WHERE
WHEREfilter rowsAND / OR / NOTWHERE ①BETWEEN / LIKEWHERE ②IS NULL / INWHERE ③
WHERE keeps only the rows that match. The three families — logical operators, range & pattern, NULL & set — are covered in WHERE Deep Dive ①②③.
Transforming Values with Functions / CASE
functions / CASEtransform valuesArithmetic / dateFunctions ①StringsFunctions ②Math / COALESCEFunctions ③IF / IIFFunctions ④CASE multi-branchFunctions ⑤CASE in practiceFunctions ⑥
Take the values pulled out by SELECT and transform or classify them with arithmetic / string / math functions or IF / CASE. WHERE filters rows; functions change column values.
CategoryArticleWhat you learn
WHERE ①AND / OR / NOTLogical operators and evaluation precedence
WHERE ②BETWEEN and LIKERange filtering and pattern matching
WHERE ③IS NULL and INThree-valued logic, NULL checks, set matching
Functions ①Arithmetic, concat, date+ - * / %, || / CONCAT, date functions
Functions ②String functionsLENGTH / TRIM / REPLACE / UPPER / SUBSTR
Functions ③Math functions and COALESCEROUND / FLOOR / CEILING, NULL replacement
Functions ④IF / IIFSwitch a value on a single condition
Functions ⑤CASE for multi-condition branchingSimple CASE form and searched CASE form
Functions ⑥CASE in practiceORDER BY / UPDATE / NULL handling

Nice work!

You have now organized everything from table definition through adding, reading, updating, and deleting rows, filtering with WHERE, and transforming values with functions and CASE.

Combine these and you can already write many of the reporting queries you will see in real work. Go back to any article that interests you and try it on your own data.