I want to get table rows with same value in same column with eloquent laravel:
this is mysql code
SELECT *
FROM Employees
WHERE PhoneNumber IN (
SELECT PhoneNumber
FROM Employees
GROUP BY PhoneNumber
HAVING COUNT(Employee_ID) > 1
)
http://www.sqlfiddle.com/#!3/07e65/2
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire