| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|||||||
| Oracle Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too. |
![]() |
|
|
LinkBack | Thread Tools | Rate Thread | Display Modes |
|
|
#2 (permalink) |
|
Super Moderator
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117 Thanked 241 Times in 198 Posts Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51
|
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
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sql - How to copy sql table. | radhika_btech | Oracle Interview / Technical Questions | 1 | 26-01-07 08:23 PM |
| 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 | 0 | 23-01-07 09:32 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 01:38 PM |