query

Thread Solved

Join Date: Jun 2008
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

 
0
  #1
Jul 1st, 2008
How to check the duplicate Columns in a table
Thanks & Regards
Sushil Kumar Chandu
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

Re: query

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

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

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

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC