I have a query as below:
select
a.person_name ,
f.speciality,
a.email,
a.phone,
a.address
na.descrition 'nationality',
ci.description 'city'
from person a
left join lookup na on a.Country_id = na.lookup_id and na.lookup_type='FND_COUNTRIES'
left join lookup ci on a.City_id = ci.lookup_id and ci.lookup_type='IM_CITIES'
left join speciality pe on a.id = pe.person_id
left join np_speciality f on pe.speciality_id = f.speciality_id
,
person_dtl b
where a.id = b.person_id
result of this
person_name speciality email phone nationality city
a 1 20 30
a 20 20 30
a 30 20 30
I need the below result:
person_name speciality email phone nationality city
a 1,20,30 20 30
hOw can i achieve the same
found answers for the same but its not able to solve the issue because of multiple left join in the query