I have two tables:
Names(id, name)
Addresses(id, name_id, address)
I want to write query that return me:
name, address list (address1, address2, adress3, ..)
Something like:
Select A.name, B.list_of_addresses
From Names A
Inner Join (Select name_id, /*list_of_addresses with comma between them*/
From Addresses
Group By name_id) B ON A.id=B.name_id
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…