database
Finding duplicate db entries
Supposing you have a MySQL table like this:
id
login
client
password
email
...without a UNIQUE constraint for (login,client) – you want to find out which combinations of login and client are there more than once – use this kind of query:
SELECT login,client,count(*) as cnt FROM yourtable GROUP BY 1,2 HAVING cnt > 1 ORDER BY 3;
Thanks to Mike for the hint.
Welcome!
Tags
agile
ant
aptana
atlassian
challenge
ci
database
drm
eclipse
europa
gem
hacking
hudson
ipsec
Java
jdbc
jira
jmeter
jruby
maven
mysql
N73
Nokia
openswan
openvpn
performance
piracy
qtjambi
radrails
rails
refactoring
reverse engineering
sandbox
SCRUM
Technology
tomcat
university
virtualbox
virtualization
vista
vmware
vpn
windows 7
xbox360
xkcd