hi folks, as well as being very new to EA as a software package and as career i am trying to learn as best i can. I am having some difficulty with learning SQL side of search the model
My initial SQL bore some fruit which was the very simplistic following:
SELECT ea_guid AS CLASSGUID, Object_Type AS CLASSTYPE, Name FROM t_object
where Name like '*Benefit*' or Name='*Benefit*'
I wanted to add some information to the search so that i can figure out where in my model this is found, borrowing from Geert's sql searches i devised the following to get some extra columns, where i am looking to get packnames and stereotypes listed
SELECT ea_guid AS CLASSGUID, Object_Type AS CLASSTYPE, Name as Name
,package.name as 'Package Name' ,package_p1.name as 'Package level -1',package_p2.name as 'Package level -2',package_p3.name as 'Package level -3'
from (((( t_object
inner join t_package package on package_id = package.package_id)
left join t_package package_p1 on package_p1.package_id = package.parent_id)
left join t_package package_p2 on package_p2.package_id = package_p1.parent_id)
left join t_package package_p3 on package_p3.package_id = package_p2.parent_id)
where Name like '*Benefit*' or Name like '*Benefit*'
Sadly i cannot make this work and i have no idea why it wont work, can anyone point me in the right direction?