Hello All
I understand this is a C# group. But would like to give it shot
I have two Table Employee and Dept
Employee Columns EmpID EmpName MgrID DeptID
EmpID(PK) MgrID (FK)
Dept COlumns
DeptID DeptName
I need to return XMl Hierarchy when I pass DeptID as a parameter So my final result shoudl look like this
<Dept> <Emp ID="" Name="" .....> <Emp ID="" Name=""> </Emp> </Emp> <Emp ID="" Name="">
</Emp> <Emp ID="" Name=""> </Emp> </Dept>
How do I write this Query
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group. To post to this group, send email to C_Sharp googlegroups.com To unsubscribe from this group, send email to C_Sharp-unsubscribe googlegroups.com For more options, visit this group at http://groups-beta.google.com/group/C_Sharp -~----------~----~----~----~------~----~------~--~---
|