Wiki articles tagged with "subquery"

Showing 1-1 of 1 item.

Using sub query for doubletts

Created 11 years ago by mb, updated 11 years ago by mb.

find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

$model=new MyModel('search');
$model->unsetAttributes();

3 0
10 followers
Viewed: 25 007 times
Version: 1.1
Category: Tips