ActionIQ interview question

Basic coding question -- how do you do "group by" operations?