SQL>
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>
SQL> select *
2 from myTable myTable1
3 where last_ddl_time = (select max(last_ddl_time) from myTable myTable2 where myTable2.owner = myTable1.owner )
4 /
no rows selected
SQL>
SQL> drop table myTable;
Table dropped.
|