Lateral Inline Views – an official feature of Oracle 12c (was hidden/unsupported/undocumented in 11g) – lets you refer within an inline view to tables that appear to its left in the FROM clause.
Let’s take an example (a simplification of a real-life use case I handled recently). We have a SCHEDULES table, including for each repeatable task the time range in which it should be executed, and the frequency:
create table schedules ( name varchar2(100) not null primary key, start_time date, end_time date, repeat_interval interval day to second );
Let’s fill it with 3 records: Continue reading “Lateral Inline Views”