RSS Forums RSS

query

Please support our MySQL advertiser: Programming Forums
Thread Solved
Reply
Posts: 4
Reputation: sushilchandu is an unknown quantity at this point 
Solved Threads: 0
sushilchandu's Avatar
sushilchandu sushilchandu is offline Offline
Newbie Poster

query

  #1  
Jul 1st, 2008
How to check the duplicate Columns in a table
Thanks & Regards
Sushil Kumar Chandu
AddThis Social Bookmark Button
Reply With Quote  
Posts: 290
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: query

  #2  
Jul 1st, 2008
 SELECT YourColumn, COUNT(*) TotalCount
FROM YourTable
GROUP BY YourColumn
HAVING COUNT(*) > 1
ORDER BY COUNT(*) DESC 

check above code for duplicate colums in a table
Thanx,
Sreekanth

http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 581 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:41 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC