Scema:
Person(pid:int,
name:char(20),
predecessor:int -> Person.pid
)
Example Table:
pid, name, predecessor
0, 'abc', NULL
1, 'bcd', 0
2, 'cde', 1
3, 'efg', NULL
4, 'fgh', 3
How do i find all successors of a Person 'abc'?
Desired Ouput:
name
'bcd'
'cde'
Many Thanks!