SELECT name
FROM employees
GROUPBY name
HAVINGCOUNT(name)>1;
This query groups the records in the "employees" table by the "name" column and filters the results to return only those names that appear in more than one row.
PromptDB can make mistakes. Please double-check responses.