我得到了一個表用戶(id,first_name,last_name,...) 我想在該表中找到重複的用戶(具有相同的first_name和相同的last_name的用戶)。sql:如何找到重複的行?
比方說,我的數據是:
1;bill;campton
2;sarah;connor
3;bill;campton
我需要得到
1;bill;campton;3;bill;campton
我不想讓
1;bill;campton;3;bill;campton
3;bill;campton;1;bill;campton
我怎麼能這樣做呢? 我使用SQL Server 2005
謝謝
count函數是查找重複行的簡單方法 – 2010-12-14 16:06:47