Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How To get A Common Created Column From Which Is Present In All The Tables in a DB User

Satyam ReddyOct 21 2015 — edited Oct 21 2015

Team,

Let us assume we are using SCOTT schema and as usual we have tables my table  emp, dept,salgrade etc tables. But lets assume we have a column by name date_created in all the tables. i would like to get the table name along with the max date_created column from  the corresponding table. I have tried like this:

{code}

Select Table_Name ,

(Select Max(Date_Created) From (Select Table_Name From user_tables Where Table_Name = Ut.Table_Name)) As Max_Date_Created

from user_tables ut

{code}

but it does not work.

Any suggestions most welcome.

REgards

This post has been answered by bugfox on Oct 21 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2015
Added on Oct 21 2015
5 comments
250 views