Thread: query
View Single Post
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