Need help from the SQL experts please...I have encountered a situation
that I need to expand a link-list like or tree like relationship into
a more details by using SQL only. This is the situation...a table with
2 fields that are interesting..
Here is the table with F1(parent) and F2 (child)
1 2 other fields....
1 A other fields....
1 3 other fields....
2 4 ...
2 B ..
A 5
A 6
3 C other fields....
.......more or called deeper down but unknow how deep it can go...you
can see the child can be as a parent of another child, like a tree
branchs out.
I wanted it to be expanded into something like this
1 2 other fields....
1 2 4 other fields....
1 2 4 B other fields....
1 A ....
1 A 5
1 A 6
1 3
1 3 C other fields....
......more ...
What gets me is that I must using SQL expression only in my Crystal
report and I am lost. I have tried some UNION/Sub-Query approach but
with no luck and cursor(s) may not be a solution that I wanted. Does
anyone can shed some lights and point me to the right direction
please.