Click here to Skip to main content
15,898,817 members
Please Sign up or sign in to vote.
3.40/5 (4 votes)
How to make an ultimate join? [Note : word "ultimate join" does not exists in SQL or any DB]

Database :- https://www.dropbox.com/s/lti39imuia7uksx/1.png[^]

from the link above i want the answer as "Harsh->Yash->Yugank->Pankaj->Priyanka->Miller" on the basis of joining of "IId" with "Id". How to achieve this?
Preferred database use (Access).

Thanks in advance
Posted
Updated 7-Feb-14 21:35pm
v3
Comments
agent_kruger 19-Feb-14 5:23am    
can somebody help me here?

1 solution

The SQL syntax and semantics are "set based" meaning they give you 2 dimensional results, it is not tree or graph orientated.

To get what you want you need to recursively query and accumulate the results yourself.
 
Share this answer
 
Comments
agent_kruger 3-Feb-14 9:03am    
but sir, i have seen a software 15 days ago doing the same thing with access
agent_kruger 8-Feb-14 3:35am    
any idea how to do this?
Mehdi Gholam 8-Feb-14 3:38am    
Write a loop and append the results to a string?
agent_kruger 8-Feb-14 3:39am    
no sir, i want it on the database side only.

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