I'm doing a rather complex query to generate a data dicitonary.
To simplify the query, I'd like to make use of Oracles WITH clause. Unfortunately this doesnt seem to be supported in the SQL search feature (or the repository.SQLQuery) command.
I don't know if it's something with my local setup, or somehting with EA. Any ideas?
Simple Example:WITH q01 AS (Select Package_ID From t_package where ea_guid = '{A5B35797-AA94-4641-ACC7-AB1A2819DD66}')
SELECT Package_ID From q01
Info from oracle:http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_10002.htm#i2129904What I'm trying to do:WITH q04 AS (Select q03.PName, q03.EName, q03.EID, q03.AName, q03.AType From
(Select q02.PName, q02.EName, q02.EID, t_attribute.Name AS AName, t_attribute.Type AS AType From t_attribute JOIN /* q03: get the attrbutes for the XSD objects */
(Select q01.Name AS PName, t_object.Name AS EName, t_object.Note AS ENote, Object_ID AS EID from t_object JOIN /* q02: get the objects within the XSD packages */
(Select Package_ID, Name From t_package where Parent_ID IN /* q01: get the packages within the XSD Schema */
(Select Package_ID From t_package where ea_guid = '{A5B35797-AA94-4641-ACC7-AB1A2819DD66}') /* the package containing the XSD Schemas */
) q01 ON t_object.Package_ID = q01.Package_ID /* end: q01 */
) q02 ON t_attribute.Object_ID = q02.EID /* end: q02 */
) q03 /* end: q03 */
)