Selecting from the Results of Another Query
You need to treat the results of a query as if they were the contents of a table. You don’t want to store the
intermediate results as you need them freshly generated every time you run your query.
Oracle’s inline view feature allows a query to be included in the
FROM clause of a statement, with the
results referred to using a table alias.
(select department_id, department_name
where location_id != 1700) d;
The results will look like this.
6 rows selected.