Hi Vaishali,
No, the SHOW QUALIFIED SELECT... statement works only for the children (top to bottom). You can't find the parents of a specific table/view through this statement.
However, the view definitions can be found in dbc tables and you will have to write an external program or a UDF to parse the view definitions and build the bierarchy bottom to top.
↧