Skip to content
Advertisement

Converting SQL query result to XML [closed]

Input data

My query looks like this

The above Query generating different entry for each row. But I need group by id year, name and provide single entry with different prov and provid.

Output Data:

How do I convert SQL query result to XML?

Expected result set:

Advertisement

Answer

Try This

FIDDLE DEMO

Output

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement