Comments on: Oracle SQL – Finding free adjacent seats in an airplane, using Subquery Factoring, Analytical Functions (LISTAGG and LEAD), Outer Join, PIVOT and good old INSTR Friends of Oracle and Java Thu, 21 May 2015 20:49:51 +0000 hourly 1 By: Anton Scheffer Wed, 06 Mar 2013 08:00:55 +0000 Nice! One slight remark, For your random barding passes the good old sample clause is much more suitable
insert into boarding_passes( seat_id, more_details )
select id, ‘Seat was allocated’
from seats sample( 35 )