Simplest approach to support group by column not appear in select