11. Grouping methodΒΆ
$db->groupBy (“name”); $results = $db->get (‘users’); // Gives: SELECT * FROM users GROUP BY name;
Join table products with table users with LEFT JOIN by tenantID
$db->groupBy (“name”); $results = $db->get (‘users’); // Gives: SELECT * FROM users GROUP BY name;
Join table products with table users with LEFT JOIN by tenantID