Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

leftJoinSub laravel

$query->leftJoinSub($userCountByLicenses, 'users', function($join) {
            $join->on('data_tabel.id', '=', 'users.sub_id');
        })->whereRaw('user_limit > IFNULL(`users_count`, 0)')
 
PREVIOUS NEXT
Tagged: #leftJoinSub #laravel
ADD COMMENT
Topic
Name
6+9 =