45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




Oracle Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

Sql - How to display duplicate rows in a table?

        

Reply
 
LinkBack Thread Tools Display Modes
Old 23-01-07, 09:35 PM   #1 (permalink)
Senior Member
 
Join Date: Jan 2007
Age: 28
Posts: 283
Thanks: 0
Thanked 6 Times in 6 Posts
Rep Power: 5 radhika_btech will become famous soon enough
Sql - How to display duplicate rows in a table?

Sql - How to display duplicate rows in a table?

radhika_btech is offline Offline   Reply With Quote
Old 28-01-07, 02:07 AM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Posts: 2,379
Blog Entries: 4
Thanks: 118
Thanked 319 Times in 238 Posts
Rep Power: 60 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
Re: Sql - How to display duplicate rows in a table?

let us assume we have some duplicate records in emp table and we can identify duplicates with empno. The the query looks like this.

Select * from EMP
where
rowid not in
(select max(rowid) from emp group by empno);

The above query displays all duplicate records.

Thanks,
Krishna
sk_kireeti is offline Offline   Reply With Quote
Old 22-09-09, 06:23 PM   #3 (permalink)
Unregistered
Unregistered
 
Posts: n/a
Re: Sql - How to display duplicate rows in a table?

Thanks a lot thats a good one
  Reply With Quote
Reply

Tags
display , duplicate , rows , sql , table


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql - Given an employee and manager table, write a SQL syntax that could be used to find out an employee's manager's manager, assuming all managers are in the employee table. radhika_btech Oracle Interview / Technical Questions 1 17-09-09 07:03 PM
Sql - How to copy sql table. radhika_btech Oracle Interview / Technical Questions 1 26-01-07 08:23 PM
SQL SERVER 2000 QUESTIONS.... LALIT KUMAR VB / ASP.NET Technologies 2 16-12-06 06:29 PM
How to insert values from one table to another table in sql server? thirust5 ORACLE , SQL SERVER , SYBASE & Others 2 13-11-06 01:22 PM
hi..... gomesh_2k6 VB / ASP.NET Technologies 8 07-09-06 12:38 PM


All times are GMT +6.5. The time now is 09:05 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0