Oracle SQL Pattern Matching Made Easy
summary
Demonstrates how Oracle 12c’s MATCH_RECOGNIZE turns a table or inline view into a pattern engine that outputs matched row sequences, with concrete SQL examples that detect successive wins, frequency ranges, and even Fibonacci numbers. Shows using pattern quantifiers (X{n}, +, ), navigation functions (FIRST, LAST, PREV, NEXT), measures like all rows per match vs one row per match, the classifier* to debug assignments, SKIP options, and claims simpler queries with often better performance.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 6:35Understanding Pattern Matching
- 14:44Input and Output
- 15:32Subquery
- 15:57Multiple Variables
- 16:30Question Marks
- 18:21Dependency
- 18:51Example Question
- 19:17Define the Pattern
- 20:59Find Returning Winners
- 21:25Define Pattern
- 23:01Classifier
- 24:11Returning Winners
- 25:08Last Row
- 25:40First Diff Record
- 27:50NonWinners
- 30:12Average Points
- 31:49Fibonacci Numbers
related talks
43mImplementing Row Pattern Recognition
45mPattern Search on String Sequences in a Database
31mFuturistic SQL: Making the impossible possible
26mRelational E-matching
26mOptimize your workload with automatic indexing
30mWrite scalable SQL with Oracle Autonomous Database
47mHow to query data using natural language - intro to AI features in Oracle 23ai
50mHow SQL Databases Come up with Algorithms that You Would Have Never Dreamed Of
