cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Soooo....

I've been playing around in the system views and found quite a bit of useful stuff for querying meta-data around base objects.

For Tables, column definitions, constraints etc ...

For Attribute views,  column names, dependencies, joins & join conditions....

Yet for Calculation Views; I'm drawing a blank.

Ok, so I can list them (name, type) from sys.objects, but I've not been able to gain any further info.

Does anyone know (a) why this is (they they are not detailed in sys views ?)  and (b) does the data I'm looking for exist in tables elsewhere ?

Just for illustration, a small example of the views I've been hitting so far ..

M_TABLES
CS_VIEW_COLUMNS
CS_BO_VIEWS
CONSTRAINTS
CS_JOIN_TABLES
CS_JOIN_PATHS
CS_JOIN_CONDITIONS
CS_KEY_FIGURES
OBJECTS
OBJECT_DEPENDENCIES
0 Likes
View Entire Topic
lbreddemann
Active Contributor
0 Likes

What is it you want to find out about column views?

- Lars

Former Member
0 Likes

In the simplest case, I'd like to be able to see what tables/views it depends on.(and vice-versa)

Example of what you can to explore for Attribute Views .... so something like this for CVs :

Select * from SYS.CS_JOIN_TABLES WHERE VIEW_NAME = 'myView'

SCHEMA_NAMEVIEW_NAME                                        TABLE_SCHEMA_NAMETABLE_NAMETABLE_TYPE
_SYS_BIC   myView_ATABCTable1none     
_SYS_BIC   myView_ATABCTable2none     
_SYS_BIC   myView_ATABCTable3none     

Select * from SYS.CS_JOIN_TABLES WHERE TABLE_NAME = 'myTable'

SCHEMA_NAMEVIEW_NAME                                        TABLE_SCHEMA_NAMETABLE_NAMETABLE_TYPE
_SYS_BIC   ....../CUSTOMER_AT                 ABCmyTablenone     
_SYS_BIC   ....../Vendor_AT               ABCmyTablenone     
_SYS_BIC   ...../PurchaseHistory_AT   ABCmyTablenone