In Oracle 12c we can write inline functions within a select statement. When running such a select in SQL or Command Window, the statement is broken into several pieces. A simple example:
with function IC (a_ in varchar2) return varchar2 is
begin
return initcap(a_);
end;
select IC(username)...