Skip to Content

System table to find out the Table name ,Calculation view name and Column names

Which is the system table name to find out the metadata of HANA Calculation views?

Calculation view is created by using many Tables .

I need to know those Table names ,Column names and Calculation view names

Table name , Column names ,HANA Calculation View Names

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 01, 2019 at 08:03 AM

    Query to get tables consumed by the view:

    select
    	DEPENDENT_OBJECT_NAME,
    	BASE_SCHEMA_NAME,
    	BASE_OBJECT_NAME	
    from 
    	"SYS"."OBJECT_DEPENDENCIES"
    WHERE
    	"DEPENDENCY_TYPE" = 1
    	AND "DEPENDENT_SCHEMA_NAME" ='_SYS_BIC'
    	AND "BASE_OBJECT_TYPE" ='TABLE'
    	AND "DEPENDENT_OBJECT_TYPE" = 'VIEW'
    

    Query to get column names in output of the view:

    select 
    	"PROPERTY_ID",
    	"CATALOG_NAME",
    	"SCHEMA_NAME",
    	"CUBE_NAME",
    	"PROPERTY_NAME",
    	"PROPERTY_CAPTION"
    from 
    	"_SYS_BI"."BIMC_PROPERTIES"
    where 
    	"SCHEMA_NAME" = '_SYS_BIC'
    	AND PROPERTY_TYPE = '1'
    

    Query to get view names:

     select 
    	 CATALOG_NAME,
    	 SCHEMA_NAME,
    	 CUBE_NAME,
    	 DESCRIPTION 
    from 
    	"_SYS_BI"."BIMC_ALL_CUBES"
    

    You can combine all these tables to get single query with information which you need. Notice that you will not be able to link output column with the table from which it is taken.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.