查詢筆數重複的資料及數量

摘要:查詢筆數重複的資料及數量

 

NAME欄位查詢NAME欄位資料重複的筆數
 
 
 
SELECT  NAME,  COUNT(*) AS count
FROM View_2
GROUP BY  NAME
HAVING (COUNT(*) > 1)