PRIMARY KEY and FOREIGN KEY
The two constraints that give a database its structure: one that identifies a row, and one that guarantees a reference points at something real.
Suitable for beginners.
104 notes tagged
The two constraints that give a database its structure: one that identifies a row, and one that guarantees a reference points at something real.
The four constraints that guard a single table. What each one enforces, how NULL interacts with UNIQUE and CHECK, and why the database is the right pl...
Four elements divide a page into regions a screen reader can jump between. Learn the rules for each, including the one that says main appears exactly...
A label names a field for every reader and grows its click target. Two ways to bind one, and the reasons a form without labels is not usable.
One element, more than twenty types. Choosing the right one gives you the correct mobile keyboard, free validation and better autofill, at no cost.
Every form is a container, a set of named controls and a submit button. Learn what action and method do, why name matters more than id, and what the b...
Outer joins keep unmatched rows and fill the missing side with NULL. Learn LEFT and RIGHT JOIN, and the one mistake that silently turns an outer join...
INNER JOIN keeps only rows that match on both sides. Learn the syntax, how the join condition works, and why unmatched rows silently disappear.
A table is for two dimensional data, never for layout. Learn the four core elements, the difference between th and td, and the test that tells you whe...
GROUP BY collapses rows into one row per distinct key. Learn the single rule that governs the select list and how NULLs are grouped.
The five aggregate functions that collapse many rows into one value, the three forms of COUNT, and what each one does with NULL.
ul when the order does not matter, ol when it does. Plus the start, reversed, type and value attributes that most people never discover.