well, in the document i provided earlier it's about counting distinct row in table. I tried using it and it returned a count of distinct row, but the datagrid still have the same data as before being distincted.
And for group by function, I want to use it when it come to aggregate scenario.