Sorry, didn't copy the GROUP BY part of the statement.
I have edited my above post to include it.
Please check if that will work.
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”