I need to run a query on a database table that looks like this
Col1 Col2 Col3
_________________________
1325 001 3278
1265 001 2356
3278 001 3335
3335 001 3335F
3335F 001 33234
Notice how the 3rd column references the first column. So if I query 1325 I need to run another query against Col1
with the value returned from col3 and so on and The final result needs to be bound to a datagrid
So the query 1325 should return the folowing
Col1 Col2 Col3
________________________
1325 001 3278
3278 001 3335
3335 001 3335F
3335F 001 33234
This process needs to go several levels deep (10)
Col1 Col2 Col3
_________________________
1325 001 3278
1265 001 2356
3278 001 3335
3335 001 3335F
3335F 001 33234
Notice how the 3rd column references the first column. So if I query 1325 I need to run another query against Col1
with the value returned from col3 and so on and The final result needs to be bound to a datagrid
So the query 1325 should return the folowing
Col1 Col2 Col3
________________________
1325 001 3278
3278 001 3335
3335 001 3335F
3335F 001 33234
This process needs to go several levels deep (10)