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 > Interview Questions > Interview Questions > SQL
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

SQL SQL Interview Questions asked in various Interviews. Professionals are invited to share Answers for these SQL Interview Questions. SQL Interview Questions with answers, Experiences, Career Advices, Tips and more.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 17-06-08, 03:48 AM   #1 (permalink)
Senior Member
 
Join Date: Apr 2008
Posts: 13,563
Thanks: 0
Thanked 4 Times in 4 Posts
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 136 ShivaniX is on a distinguished road
How to display duplicate rows in a table

How to display duplicate rows in a table?
ShivaniX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15-07-08, 06:30 PM   #2 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 seemant is on a distinguished road
Re: How to display duplicate rows in a table

select column1 from tablename
where column1<>0
group by column1
having count(*)>1
__________________
seemant
Software Engineer
seemant is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
interview questions , sql



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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sql - I have a table with duplicate names in it. Write me a query which returns only duplicate rows with number of times they are repeated. radhika_btech Oracle Interview / Technical Questions 2 19-09-08 03:05 PM
How to display duplicate rows in a table shiva42 SQL in Oracle 0 12-06-08 06:35 PM
ORACLE placement paper 12 sridhar ORACLE Placement Papers 0 09-02-07 07:23 PM
ORACLE placement paper 7 sridhar ORACLE Placement Papers 0 09-02-07 06:44 PM
Sql - How to display duplicate rows in a table? radhika_btech Oracle Interview / Technical Questions 1 28-01-07 02:07 AM


All times are GMT +6.5. The time now is 01:10 AM.





Search Engine Optimization by vBSEO 3.1.0