DATA Step, Macro, Functions and more

Not able to view query for table in Oracle DB using SAS

Reply
Contributor
Posts: 35

Not able to view query for table in Oracle DB using SAS

[ Edited ]

I have an Oracle DB with some views and tables. I need to get the code for generating table T1. T1 is there in "all_tables" and "all_objects", but not in "all_views".

How do I get the code for T1? I need to see how different tables have been merged, combined etc. to get T1.

 

Super User
Posts: 5,424

Re: Not able to view query for table in Oracle DB using SAS

Posted in reply to abhik_giri
How does SAS comes into the picture?
I'm not an Oracle expert but I don't think that you could get the code by just looking at the table. Views are totally different since they consists of a query itself.
Data never sleeps
Contributor
Posts: 35

Re: Not able to view query for table in Oracle DB using SAS

The input data is in Oracle, however all further processing is done in SAS. I'm trying to take a look at the Oracle query (for table T1) from SAS.

Unfortunately, I'm not an Oracle expert too Smiley Sad

Super User
Posts: 5,424

Re: Not able to view query for table in Oracle DB using SAS

Posted in reply to abhik_giri
So this is basically aneed Oracle question and best asked at an Oracle forum, perhaps with little chance for success.
But in well organised ships the DBA keeps all create table SQL in a version control system or similar, so talk to the DBA.
Just out of curiosity - why do you want to see the SQL that created the table? Usually this says very little about subsequent updates, inserts etc.
Data never sleeps
Ask a Question
Discussion stats
  • 3 replies
  • 212 views
  • 0 likes
  • 2 in conversation