adspace


Hi All,

I want to display all duplicate records in the table. My
query has to fetch all the records which are duplicate(First
Name or Last Name). Also I want the ability to also pull
names where there might be a middle initial placed in the
end of the first name field, (i.e., "Maria Z. " vs. "Maria")
as well.

Please guide me to find this.



Table:

ID FirstName LastName

1 Zach H Hoffman

2 Zach Hoffman

3 Troy Hoffman

4 Shawn Livermore

5 Prem S

6 Jony Hoffman H

7 Zach Modan



I need the query to filter.........

ID FirstName LastName

1 Zach H Hoffman

2 Zach Hoffman

3 Troy Hoffman

6 Jony Hoffman H

7 Zach Modan



I hope this example will give you clear idea.....




Thanks in Advance

Prem

Answer Posted / eralper

Hello Prem,
Please check the forum post
http://www.kodyaz.com/forums/thread/21123.aspx for solution
of your question. I see that you have asked this question
on several forums. That is a good idea to find an answer :)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the different types of locks available in sql server?

1049


What is subquery? Explain the properties of a subquery?

1058


What is temporary table in sql server? Why we use temp table?

1019


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1196


What are different types of constraints?

1000


What is normalization and what are the advantages of it?

1054


What is self contained sub query?

1139


what is spatial nonclustered index

1057


Can we do dml on views?

1035


How to enter binary string literals in ms sql server?

1243


Why we use the openxml clause?

1078


How can you append an identity column to a temporary table?

1069


Disadvantages of the indexes?

1222


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8227


Is it possible to have clustered index on separate drive from original table location?

1039