and also sql doesnt require that the group by field is included in the select View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995016#3995016 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995016