SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT Phone, STRING_AGG(coalesce(customerID, '') , ',') AS CustomerIDs FROM customer GROUP BY phone Having count(phone) > 1 ORDER BY phone ;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear