Hi Alberto,
the SQL:
Select o.ea_guid AS CLASSGUID, o.object_type As CLASSTYPE,
o.name, o.Object_Type AS Type, o.stereotype,'Reference to diagram' As Usage, dia.name As Diagram_Name, dia.diagram_type
#DB=DUMMY# /* Reference to Diagram */ #DB=DUMMY#
from
#DB=JET# t_object o INNER JOIN t_diagram dia on ( o.pdata1 = Format(dia.diagram_id )) #DB=JET#
#DB=SQLSVR# t_object o INNER JOIN t_diagram dia on ( o.pdata1 = dia.diagram_id ) #DB=SQLSVR#
#DB=ORACLE# t_object o INNER JOIN t_diagram dia on ( o.pdata1 = Cast(dia.diagram_id as Varchar2(39)) ) #DB=ORACLE#
where dia.ea_guid = '<Search Term>' AND o.object_type in ('InteractionOccurrence', 'Text', 'UMLDiagram')
UNION
Select o.ea_guid , o.object_type ,
o.name, o.Object_Type , o.stereotype,
'Composite of diagram' , ' ', ' '
from
t_xref x INNER JOIN t_object o on (x.client = o.ea_guid)
where x.supplier = '<Search Term>'
order by 3,4,5
Helmut