http://it.toolbox.com/blogs/data-ruminations/case-study-ii-triple-flattening-listagg-unique-grouping-sets-65821