Full web-app lesson: Nginx → PHP-FPM → C# → SQL Server

PHP renders this page from API responses. Inventory is real lab data; the B+ tree diagram is a C# teaching model, not a view of actual SQL Server pages.

Reservation and undo buttons change shared demo inventory. Insert and reset change the shared tree model. Quote buttons only explain a policy decision; they send no email. Trace a read-only request first →

⚡ Interactive 8,192-Byte (8 KB) B+ Tree & Page Split Teaching Model

Left column inside each Leaf Page = 128-Byte Physical Rows (Arrival Order ↓) · Right column = 2-Byte Slot[] Pointers (Sorted Order ↑) · Crossed glowing wires = Pointer Indirection!
ONE-CLICK PAGE SPLIT DRILL:
Initialized Page #10 with 3 out-of-order inserts ('00500' at Byte 96, '00100' at Byte 224, '00300' at Byte 352). Notice how the 128B rows stay where they landed, while the 2B Slot[] array at Bytes 8186..8190 sorts them! Insert 2 more SKUs to trigger a PAGE SPLIT!

Scroll horizontally to inspect the simulated pages and pointers.

ROOT INDEX PAGE #0 (VSAM INDEX SET | 8,192 BYTES) — GROWS UPWARD ON SPLIT ALL SKUs (No Split Yet) ↓ Jump Page #10 LEAF PAGE #10 (3/4 Slots) Bytes 0..95 (96B Hdr) | FreeTop: 480 | NextPage: NULL ↓ PHYSICAL 128B ROWS (Arrival Order) ↑ 2B SLOT[] (Sorted) Byte 96..223 SKU '00500' Byte 224..351 SKU '00100' Byte 352..479 SKU '00300' Slot[0] (@Byte 8190) →224 ('00100') Slot[1] (@Byte 8188) →352 ('00300') Slot[2] (@Byte 8186) →96 ('00500') FREE 8KB WORKBENCH SPACE: Bytes 480..8185 7,706 / 8,192 Bytes Unallocated (Slot Fill: 75%)

Live SQL Server 2025 Catalog (dbo.Products)

Real-time rows backed by lab_warehouse_sql · Active Projection: CARPET
SqFt ÷ 9:
SKU Description Mill / UOM Public Price / MAP Gate Dalton On-Hand Reserved Cuts Avail To Sell Expediter Action
00125 (00125) Shaw Classic Plush 12ft SHAW / SQYD $22.99 120 50 70
00126 (00126) Shaw Berberspun Wool SHAW / SQYD $19.99 50 0 50
00127 (00127) Mohawk Commercial Loop MOHAWK / SQYD $14.50 300 50 250
00128 (00128) Shaw Premier Saxony SHAW / SQYD
150 0 150
00129 (00129) Shaw Texture Berber SHAW / SQYD $21.70 90 0 90
00412 (00412) Mohawk Dalton Oak LVP MOHAWK / SQFT $3.49 800 100 700
1937-RON (1937-RON) Ronald Platten 1970s SLDS Sun Unix Basmark BASIC with VSAM or CISAM file system SHAW / SQYD
1998 0 1998
40001 (40001) Shaw Commercial Tile 24x24 SHAW / CARTON $52.00 15 5 10

Zone 2 SQL Quarantine (Batch #2)

5 Poison CSV Rows Blocked from dbo.Products
CSV LineSKUCostQuarantine Reason
#5 40001 38.00 REJECT_DUPLICATE_SKU_IN_FEED
#6 40001 41.00 REJECT_DUPLICATE_SKU_IN_FEED
#7 00130 -12.00 REJECT_NEGATIVE_OR_ZERO_COST
#8 00131 PENDING REJECT_NON_NUMERIC_COST
#9 00132 85.00 REJECT_INVALID_UOM: Allowed (SQYD, SQFT, CARTON)

Lineage & Architecture Easter Egg Vault

Unlock generation stories & architecture notes (SLDS, 1937, 1998, KETO, TEXTBOOKS):

Want to practice SQL queries visually?
Fill in blanks & watch 8 KB pages filter/join live:
Launch SQL Dojo →