Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Hierarchial Query

$
0
0
Dear allFollowing is my db tablestudent_id student_code student_parent_id student_name 1 11 0 a 2 111 1 b 3 1111 2 c 4 11111 3 d Can anyone here please help me to generate following op?student_id student_code student_parent_id student_name Hierarchy 1 11 0 a 11 - 111 2 111 1 b 11-111-1111 3 1111 2 c 11-111-1111-11111 4 11111 3 d 11111ThanksPeter

Viewing all articles
Browse latest Browse all 3145

Trending Articles