1. We have moved to a new forum! There may be a few things not working properly so please let us know if you find a bug. Remember to use the bbCode [ sql ] tag for SQL statements.

List all customers whose name is present more than once in the table?

Discussion in 'SQL - Questions and Answers' started by alexfr, May 24, 2006.

  1. alexfr New Member

    Dialect: MySQL
    List all customers whose name is present more than once in the table?
  2. alexfr New Member

    Dialect: MySQL
    SQL:
    SELECT count(*), name
    FROM customers
    GROUP BY name
    HAVING (count(*)>=2)

Share This Page