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: BUTCHER
Gross Lb ÷ 9:
SKU Description Ranch / Cut Unit Public Price / MAP Gate Cooler Rails On Ticket Pass Sellable Yield Expediter Action
00125-RIB (00125) Dry-Aged Prime Ribeye Subprimal (109A) BEAR CREEK / LBS $22.99 120 50 70
00126-BRSK (00126) Whole Packer Beef Brisket (Deckle-On) LOOKOUT MTN / LBS $19.99 50 0 50
00127-PORK (00127) Heritage Duroc Pork Shoulder Butt SEQUATCHIE / LBS $14.50 300 50 250
00128-WAGYU (00128) A5 Miyazaki Striploin Roast (Chef Reserve) CHATT PRIME / LBS
150 0 150
00129-TEND (00129) Center-Cut Chateaubriand Tenderloin (PSMO) BEAR CREEK / LBS $21.70 90 0 90
00412-SAUS (00412) House Smoked Andouille & Chorizo Links SMOKEHOUSE / LINKS $3.49 800 100 700
1937-YIELD (1937-RON) Platten Butcher Yield Ledger (8% Waste Cut) MAIN ST / YIELD
1998 0 1998
40001-STOCK (40001) Roasted Veal Marrow & Demi-Glace (24pk) MAIN ST / CRATE $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 →