Results 1 to 3 of 3

Thread: Duplicates

  1. #1
    Join Date
    Apr 2004
    Location
    Melbourne
    Posts
    144

    Unanswered: Duplicates

    i'm trying to get duplicates out of the my database

    SELECT COUNT(*) AS Amount,
    Firstname,
    surname,
    Internalextension
    FROM iac.dbo.sf_profil
    GROUP BY FirstName, surname, internalextension
    HAVING COUNT(*) > 1 order by firstname, surname


    How do i alter the query just retrieve records which have firstname and lastname which are similar but different extension numbers ?

  2. #2
    Join Date
    Jun 2003
    Posts
    269

    Exclamation Re

    could you pls make it more clear.Perhaps some records with DDL

  3. #3
    Join Date
    Jul 2003
    Location
    The Dark Planet
    Posts
    1,401
    Quote Originally Posted by jcwc888
    i'm trying to get duplicates out of the my database

    SELECT COUNT(*) AS Amount,
    Firstname,
    surname,
    Internalextension
    FROM iac.dbo.sf_profil
    GROUP BY FirstName, surname, internalextension
    HAVING COUNT(*) > 1 order by firstname, surname


    How do i alter the query just retrieve records which have firstname and lastname which are similar but different extension numbers ?
    According to you what does the above query achieve ???
    Get yourself a copy of the The Holy Book

    order has no physical Brett in The meaning of a Kaiser . -database data

Posting Permissions

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