$ 0 0 Lumira supports 'cross-tabs' which are doing exactly what you want to do here: pivoting the result set.