I have 3 tables Manager, Lead, Trainee and the way they are related through a Relation table.
Attached image depicts the tables with saple rows and columns :
I need to get the Lead name and Trainee name for a given Manger.Id.
I have got the parameter name from the below query:
select
L.Name
from
Lead L, Manager M, Relation R
where
R.PrimaryId = M.Id
and R.SecondaryId = L.Id
and M.Id = 'M101';
How do I get the trainee name apart from the lead name?

select Name from TraineeJOINsyntax in the ANSI-92 SQL Standard (more than 20 years ago) and its use is discouraged