cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member597564
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

KonradZaleski
Active Contributor

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.

Answers (0)