Oracle Sql Group By Multiple Columns In R