I've been asked to create a query from a table in a database. I haven't design the database and wouldn't create it like this. Anyway i'm a little stuck and could need some help.
Table contain several fields but only three of them is important. If i do this: select * from project
i get this result:
iID--------Name-------iParentID
1----------Root--------0
2----------Africa-------1
3----------Project1----2
4----------SubProj1---3
5----------SubProj2---3
6----------Project2----2
7----------Europe-----1
8----------Project1----7
9----------SubProj1---8
As you can see iParent show which the field is related to as this
root
--Africa
----Project1
------SubProj1
------SubProj2
----Project2
--Europe
----Project1
Is it possible the create a query showing a list of the fields related to each other, maybe concatenate it together like this:
Africa - Project1 - Subproj1
Africa - Project1 - Subproj2
Africa - Project2
Europe - Project1
I'm so frustrate over the designer of this database cause it's making it hard to create query's.
Thanks
Paal
Table contain several fields but only three of them is important. If i do this: select * from project
i get this result:
iID--------Name-------iParentID
1----------Root--------0
2----------Africa-------1
3----------Project1----2
4----------SubProj1---3
5----------SubProj2---3
6----------Project2----2
7----------Europe-----1
8----------Project1----7
9----------SubProj1---8
As you can see iParent show which the field is related to as this
root
--Africa
----Project1
------SubProj1
------SubProj2
----Project2
--Europe
----Project1
Is it possible the create a query showing a list of the fields related to each other, maybe concatenate it together like this:
Africa - Project1 - Subproj1
Africa - Project1 - Subproj2
Africa - Project2
Europe - Project1
I'm so frustrate over the designer of this database cause it's making it hard to create query's.
Thanks
Paal