SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Blackheath
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    seaching for duplicate entries

    Hi,
    I'm new to MySQL and need to run a query that finds duplicate entries within a table. The table is called "clients" and the column "LoginID" - what query/function do I need to run in order to display the LoginID's that are the same, ignoring case sensitivity.
    Many thanks for any help you can give!

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,336
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    Code:
    select LoginID
      from clients
    group by LoginID
    having count(*) > 1
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •