SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT Phone, STRING_AGG(CustomerID, ',' ORDER BY CustomerID asc) AS CustomerIDs FROM Customer GROUP BY Phone HAVING COUNT(*) > 1 ORDER BY Phone asc;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear