buildSubquery example


    public function selectCount(string $select = '', string $alias = '')
    {
        return $this->maxMinAvgSum($select$alias, 'COUNT');
    }

    /** * Adds a subquery to the selection */
    public function selectSubquery(BaseBuilder $subquery, string $as): self
    {
        $this->QBSelect[] = $this->buildSubquery($subquery, true, $as);

        return $this;
    }

    /** * SELECT [MAX|MIN|AVG|SUM|COUNT]() * * @used-by selectMax() * @used-by selectMin() * @used-by selectAvg() * @used-by selectSum() * * @return $this * * @throws DatabaseException * @throws DataException */
Home | Imprint | This part of the site doesn't use cookies.