S
SriRam
Table :
ID NAME HEAD
1 A
2 B 1
3 C 2
4 D 3
where HEAD referred from ID
What is the Query to output as follows
Name Head
A
B A
C B
D C
ID NAME HEAD
1 A
2 B 1
3 C 2
4 D 3
where HEAD referred from ID
What is the Query to output as follows
Name Head
A
B A
C B
D C