I want to join all data in table. For example: I have a table like this,
ID Name ForeingId
----------------------
1 A 1
2 B 1
3 C 2
4 D 1
5 E 1
I want to get as a result the following with query. Such as 'SELECT ... WHERE ForeingId=1' . I dont want to use procedure or function.
result : A,B,D,E