|
View previous topic :: View next topic
|
| Author |
Message |
khamarutheen
Active Member

Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi all,
I wanna to retrive only the duplicate values in the table. Can any one let me know if u have solution in ur hand. plz...  |
|
| Back to top |
|
 |
shrivatsa Warnings : 1 Active User

Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
| Code: |
SELECT columns
FROM table
GROUP BY columns
HAVING COUNT(*) > 1 |
To retrieve duplicate Rows from the table
Correct Me if I am Wrong
Thanks
Shri |
|
| Back to top |
|
 |
priyesh.agrawal
Senior Member

Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
| Back to top |
|
 |
vidhyanarayanan
New User

Joined: 23 Dec 2005 Posts: 52
|
|
|
|
Hi,
U can use "UNION ALL" to retrieve only duplicates. |
|
| Back to top |
|
 |
appasi
New User

Joined: 12 Dec 2005 Posts: 20 Location: Bangalore
|
|
|
|
Hi,
What shrivatsa has said is one of the way to retrive only duplicate values from a table
Thanks
Appasi |
|
| Back to top |
|
 |
khamarutheen
Active Member

Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi all,
Thank u i got that.. all ur suggestions are working..
Priyesh,
I was in hurry i could not find the search result properly. any way thanks....
Thank u for all of u... |
|
| Back to top |
|
 |
|
|