locating rows with duplicate data

    Date: 12/17/05 (MySQL Communtiy)    Keywords: no keywords

    how can i return all rows that have duplicate data in a particular field? in other words, if i have a table


    id | f_name | l_name
    1  | bob    | smith
    2  | bob    | johnson
    3  | tim    | richards
    4  | jen    | richards
    5  | ben    | orchard
    6  | jen    | popple


    and i'm interested in duplicate first names, i'd want my query to return rows 1,2,4, and 6. any suggestions on how to do that?

    Source: http://community.livejournal.com/mysql/77313.html

« Update multiple tables || Fulltext index error »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home