Results 1 to 2 of 2

Thread: duplicate records in sql

  1. #1
    Alan Knott is offline Senior Member
    Join Date
    Apr 2009
    Posts
    141
    Rep Power
    4

    Default duplicate records in sql

    I am Database Administrator (DBA)r. My projects include number of table. In which I need to find out any duplication of rows which has same content. I will need to use in query to find out the duplicate records in the tables. If you are having any suggestions then reply me. It can helpful to me.

  2. #2
    John Edrich is offline Member
    Join Date
    Apr 2009
    Posts
    98
    Rep Power
    4

    Default

    Refer following SQL queries to find out the duplicate records of the table:

    Code:
    1.	select * from tablename group by FieldName HAVING count(distinct FieldName > 0)
    2.	Select distinct (FieldName ) from TableName.

Similar Threads

  1. Golden Records
    By Logan Spencer in forum Download Tools and Softwares
    Replies: 0
    Last Post: 11-11-2010, 10:38 AM
  2. Keep records safe in Mac OS X
    By HernandezOrtiz in forum Operating System
    Replies: 2
    Last Post: 07-12-2010, 01:32 PM
  3. LGA 1366 and ECC/records RAM
    By MartinWilson in forum RAM
    Replies: 1
    Last Post: 05-22-2010, 11:38 AM
  4. View xml records
    By LewisClark in forum Windows Vista
    Replies: 2
    Last Post: 04-26-2010, 04:19 PM
  5. Get Rid Of Duplicate Files
    By jack879 in forum Everything Else
    Replies: 0
    Last Post: 11-17-2008, 02:27 PM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48