Hi all,
I have a table called "Sentence" that has the following fields:
ID <--- OK
NextID <--- FK To ID
Text
So if I had the following records:
*ID* *NextID* *Text*
1 12 The quick
3 40 jumps over
5 null lazy dog.
12 3 brown fox
40 5 the
If I know that the beginning of the sequence is the record with ID = 1, is there a way to order a query based on the sequence of the NextID. As with the example above, the expected result should be...
The quick
brown fox
jumps over
the
lazy dog.
I am looking for either a T-SQL statement/s or somehow do this with Linq. Thanks in advance!