Record duplicati

Su sql server per controllare l'esistenza di record duplicati.

SELECT col1, col2, count(*) AS conteggio
FROM tabella_demo
GROUP BY col1, col2
HAVING count(*) > 1

 


Technorati tags:

posted @ venerdì 22 giugno 2007 20.44

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 3 and type the answer here:
 

Live Comment Preview:

 
«febbraio»
domlunmarmergiovensab
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910