Click here to Skip to main content
15,915,163 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have three table
1-employee(emp_id,emp_name) values(1,"ahmed mohamed")




2-attach_emp(emp_id [f.k] ,attach_id[f.k]) junction table

values(1,1)
values(1,2)






3-attachment(attach_id,attachname)
values(1,"a")
values(2,"b")

i want the result to be


emp_id___emp_name___Attachment
1___ahmed mohamed___a,b
how to do this join and concate between records
Posted

I believe this[^] provides what you need.
 
Share this answer
 
A similar solution is given here
http://stackoverflow.com/questions/194852/concatenate-many-rows-into-a-single-text-string[^]
I think it may be helpful to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900