# OurSQL 2.10.0 — Focused SQL practice and published-example audit

## Focused mode

Open SQL and click **Focused mode**. The sidebar, top navigation and footer are hidden while the live editor uses a larger font (20 px by default). Use **Focus font** for 16–32 px and **Exit focused mode** to restore normal workspace navigation and the previous editor font. The focused state and layout preferences are stored in the browser and included in workspace backups.

Choose **Results → Left of editor / Right of editor / Below editor** independently of focused mode. A draggable divider resizes side-by-side panes; Arrow keys adjust it, Shift accelerates, Home/End set limits and Enter/double-click resets. On narrow panels/screens, results stack below the editor for readability. The selection is kept for wider screens.

Layout changes move existing DOM nodes and refresh CodeMirror measurements. They do not rerun SQL, replace editor text, clear history or recreate a mounted Crowfoot frame. Existing Crowfoot split mode is retained. The result area explains when no query has been run; existing Export / Copy controls remain available there.

## Published SQL examples

Open **SQL compatibility audit** from the SQL toolbar or Documentation. The audit is a finite captured source catalog, not a claim that every SQL statement or every database product can run in MariaDB. See the audit report for page counts, source URLs, collection failures, exact-example IDs/hashes, execution outcomes, fixture limitations and independent semantic comparisons.

The audit uses disposable in-memory databases with the exact shipped WASM engine. It never runs its tests in a visitor's saved workspace. SQL Server, MS Access, Oracle syntax and server-only features are classified separately rather than silently rewritten or counted as supported. Placeholder syntax and examples requiring undeclared data are distinguished from self-contained executable examples. A successful execution without an independent expected-result comparison is labelled accordingly.

## Captured snapshot outcomes

- 654 W3Schools pages + 15 official advanced reference pages; zero retrieval failures.
- 2,373 code blocks, representing 1,436 distinct SQL/text block hashes.
- 1,333 blocks executed without execution errors; this includes 143 foreign-dialect blocks whose accepted syntax does not prove equivalent semantics.
- 1,040 blocks raised errors: 668 templates/fragments, 233 other-dialect forms, 116 prerequisite/schema review items, 9 embedded/server limitations and 14 syntax/dialect review items.
- 620 deterministic SELECT observations matched independent SQLite-compatible unordered row values; 50 differed and remain explicitly flagged for semantic review. Other cases have no independent oracle.

These totals are not regression pass counts. The original command/function tests with known expected results and UI regressions are reported separately in tests/verification.json. Full capture scope, fixture adaptations, source pages, hashes and outcomes are in audit/compatibility-report.md, CSV and JSON.

DROP CHECK compatibility accepts standalone CHECK-drop alterations. It verifies existing named constraints are CHECKs before compiling, so it cannot accidentally drop a foreign key or unique constraint. Mixed alterations must be split into separate statements.

Queries using || receive an advisory when the current MariaDB mode treats it as logical OR. Use CONCAT for portable string joining or explicitly opt into PIPES_AS_CONCAT; OurSQL does not silently change the expression's meaning.

All 116 initial prerequisite/schema review cases were reattempted with earlier setup blocks from their source pages. Twenty then executed; those secondary outcomes are recorded separately in the matrix and do not change the raw-attempt totals.
