Thanks for your time Geert.
The output of your latest search only gives me the element connected to the 'myStereotype' element. I want to go the other way around. The element list should be a list of 'myStereotype', which all of these elements are related to the known start element.
I will start from scratch, to understand what I'm doing.
select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE, o.Name, o.Note AS [Notes] --choose columns to show from t_object
from t_object o --table to show
where o.Stereotype = 'myStereotype' --filter out all other stereotypesThe result is a list of all elements in the model with stereotype 'myStereotype'. Now I want to remove some results, to only show the 'myStereotype' connected to the element with objectID X.
select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE, o.Name, o.Note AS [Notes] --choose columns to show from t_object
from t_object o --table to show
inner join t_connector c on c.Start_Object_ID = X --only show rows which match, this doesn't seem to work?
where o.Stereotype = 'myStereotype' --filter out all other stereotypesThis gives me, for what I can see, all the elements in the model which has stereotype 'myStereotype'. And also, what I don't quite understand, the elements are shown several times? So this search actually gives me more results than the previous one, how is that possible?
Not what I'm looking for.
The INNER JOIN keyword selects records that have matching values in both tables.
A picture says more than a thousand words:
https://drive.google.com/file/d/13xADgCIg863Wbhh4bbJ4EAD4awgK8hJI/view?usp=sharingI have the starting element object ID x. I want the element list from the query only to show the 'myStereotypes', related to my starting node.
I don't need a working SQL query, since I need to know these kind of stuff. I really want to understand this better.
Thanks for any input. I hope I'm not confusing

Actually just typing this together made me solve this, I think. This seems to give me what I'm looking for:
select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE, o.Name, o.Note AS [Notes]
from t_object o
inner join t_connector c on c.End_Object_ID = o.Object_ID
where o.Stereotype = 'myStereotype' and c.Start_Object_ID = x