Brilliant use of XML in the relational database


A great example of how one could use the Oracle XMLDB functionality in a unforeseen way in your relational world, is being demonstrated by Laurent Schneider in his article “How do i store the counts of all tables…

Here, Laurent demonstrates the alternative use of XML functions and packages to solve intriguing and demanding queries. Have a look yourself at Laurent’s site at

Another small addition…
Apparently I overlooked the XML items filed under “csv format with select *“, but luckily Tom Kyte re-directed my attention to it…
As said, Cool stuff


About Author

Marco Gralike, working for AMIS Services BV as a Principal Oracle Database Consultant in the Netherlands, has experience as a DBA since 1994 (Oracle 6). Marco is also eager and skillful in other fields, like Operating System Administration and Application Servers, mainly to find working, performing solutions. Marco has been specializing in Oracle XMLDB, since 2003, focusing on his old love, database administration and performance. He is an Oracle XMLDB enthusiast ever since. He is also a dedicated contributor of the Oracle User Group community, helping people with their steep XMLDB learning curve. To this purpose, Marco also devoted his personal blog site to XMLDB and other Oracle issues. Marco is a member of the OakTable network and an Oracle ACE Director (specialization Oracle XMLDB).


  1. Leon Parren on


    I recently found this site: Joe Fuda shows some interesting usages of the XML functions. I found the usage of the xmlagg function to convert rows to strings exceptionally useful.