SQL Match Recognize

Guides `MATCH_RECOGNIZE` (SQL:2016 row pattern recognition) — regex-style pattern matching across ordered rows for time-series problems (V-shapes/dip-and-recovery, trend reversals, threshold breaches, complex sessionization) — instead of convoluted self-joins or nested LAG/CASE window gymnastics. Auto-invokes when writing or editing time-series pattern detection, row-sequence matching, trend-reversal/dip detection, complex multi-state sessionization, or "find this shape/sequence in rows" requests. CAVEAT — confirm engine support before recommending; when the target engine lacks it, route to `sql-gaps-and-islands` for the portable window-function fallback.

ctoth c87f9b3 3 files · 28.2 KB Updated

File contents

ctoth/sql-skills-plugin/tree/main/plugins/sql/skills/sql-match-recognize commit c87f9b30f1

Frequently asked questions

npx skillmds@latest add ctoth/sql-match-recognize