Pattern Matching + SQL Macros = Pure SQL Awesomeness!

preview_player
Показать описание
Added in Oracle Database 12c, SQL pattern matching (match_recognize) makes it easy to answer many questions that were hard-to-impossible with SQL.

But turning match_recognize clauses into reusable functions was tricky at best.

No more!

Added in 19.6, SQL macros enable you to define reusable code fragments. These return SQL that becomes part of your final SQL statement.

**********

AskTOM Office Hours offers free, monthly training and tips on how to make the most of Oracle Database, from Oracle product managers, developers and evangelists.

This session will show you how you can combine SQL macros and match_recogize. Together these enable you to write generic functions answering common questions such as "find me all the consecutive rows".
Рекомендации по теме
Комментарии
Автор

Thanks for the demo. Can this particular problem be solved by using SQL windowing functions?

joelmamedov
join shbcf.ru