Hi
I want to receive my response XML in following format...
<PersonDetails>
<Name>Ajay</Name>
<Age>29</Age>
<ContactDetails>
<ContactDetail>
<ContactType>Mobile</ContactType>
<ContactValue>9565649556</ContactValue>
</ContactDetail>
<ContactDetail>
<ContactType>Email</ContactType>
<ContactValue>[email protected]</ContactValue>
</ContactDetail>
</ContactDetails>
</PersonDetails>
I have 2 different select statements here...
SELECT name, age FROM Person_Details
WHERE id = 12
SELECT Contact_Type, Contact_Value FROM Person_Contact_Details
Where id = 12
Any suggestions here...I tried with combinations of FOR XML EXPLICIT/PATH.