T
T
tigra2016-02-12 14:46:34
Yii
tigra, 2016-02-12 14:46:34

How is a YII statistical query built?

How to use this statistical query on the same table? No links. And is it even possible?
I re-read the documentation several times and did not find anything.

'type_base' => array(
          self::STAT,
          'keyword',
          'id',
          'select' => 't.type, t.project_id, COUNT(*)',
          'condition' => 't.type='.self::TYPE_BASE.'',
          'group' => 't.type, t.project_id'
        ),

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question