Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > ORACLE , SQL SERVER , SYBASE & Others > Oracle Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

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

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 23-01-07, 09:35 PM   #1 (permalink)
Senior Member
 
Join Date: Jan 2007
Age: 27
Posts: 283
Thanks: 0
Thanked 2 Times in 2 Posts
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4 radhika_btech is on a distinguished road
Sql - How to display duplicate rows in a table?

Sql - How to display duplicate rows in a table?
radhika_btech is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-01-07, 02:07 AM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
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 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
__________________
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.
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

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 - 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


All times are GMT +6.5. The time now is 09:02 PM.





Search Engine Optimization by vBSEO 3.1.0