Subquery in from clause : Subquery IN « Subquery « Oracle PL / SQL






Subquery in from clause

  

SQL>
SQL> create table myTable
  2  as
  3  select rownum id, a.*
  4    from all_objects a
  5   where 1=0
  6  /

Table created.

SQL>
SQL>
SQL> select *
  2    from myTable myTable1, ( select owner, max(last_ddl_time) max_time from myTable group by owner ) myTable2
  3   where myTable1.owner = myTable2.owner
  4  /

no rows selected

SQL> drop table myTable;

Table dropped.

   
    
  








Related examples in the same category

1.Multiple Row Subqueries: IN with subquery
2.Multiple Row Subqueries: NOT IN with subquery
3.Not in and subquery
4.in subquery
5.All locations, where courses are offering, have no departments (subquery)
6.In and subquery
7.Multiple-row subqueries return more than one row of result from the subquery
8.Selecting Products That Belong to Department with Subquery
9.Using Set Membership with Subqueries