List Info

Thread: C-Sharp (C#) Group: Sql Query




C-Sharp (C#) Group: Sql Query
user name
2006-10-10 18:01:41
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>
&nbsp;  <Emp ID="&quot; Name=";" .....>
  ; &nbsp; &nbsp; &nbsp; <Emp ID="&quot; Name=";">
 &nbsp; &nbsp; &nbsp; &nbsp;  </Emp&gt;
 &nbsp;  </Emp&gt;
 &nbsp;  <Emp ID="&quot; Name=";">
 &nbsp; &nbsp; </Emp&gt;
<Emp ID="&quot; Name=";">
 &nbsp; &nbsp; &nbsp; &nbsp;  </Emp&gt;
</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_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )