Hello all!
I got a database like this:
Table Element: Table DataValues: Table Datatype:
ID NomElt ID Owner Type Val TypeID TypeNam
1 Elt1 1 1 0 32 0 length
2 Elt2 2 1 1 65 1 weight
3 Elt3 3 3 1 21 2 height
All right, as you can see i have a list of elements, each one owns a few data values and each value has a specific type.
I'm making an ASP page and like to make an array with elements in one column and all data types on row:
length weight height
Elt 1 32 65 xx
Elt 2 xx 21 xx
Elt 3 xx xx xx
Ok so i'd like to find such a query on my database, i work with SQLServer... I made a nice message huh? so please help me, even tell me if it's impossible because my database design is bad. THHAAAAANKS!
I got a database like this:
Table Element: Table DataValues: Table Datatype:
ID NomElt ID Owner Type Val TypeID TypeNam
1 Elt1 1 1 0 32 0 length
2 Elt2 2 1 1 65 1 weight
3 Elt3 3 3 1 21 2 height
All right, as you can see i have a list of elements, each one owns a few data values and each value has a specific type.
I'm making an ASP page and like to make an array with elements in one column and all data types on row:
length weight height
Elt 1 32 65 xx
Elt 2 xx 21 xx
Elt 3 xx xx xx
Ok so i'd like to find such a query on my database, i work with SQLServer... I made a nice message huh? so please help me, even tell me if it's impossible because my database design is bad. THHAAAAANKS!