Aaron Chu <astrate@mac.com> writes:
> I have a table which has a column of surnames (string) and I would like to know
> how can I retrieve (SELECT) all the repeated surnames, i.e. more than one
> person who has the same surname.
SELECT surname FROM table GROUP BY surname HAVING count(*) > 1
More generally, read up on GROUP BY.
--
greg