public function groupedBy(string ... $groupingColumnNames)
    {
        foreach ($groupingColumnNames as $name) {
            $this->groupingColumns[$name] = $this->table->getColumn($name);
        }

        return $this;
    }