0
重複的記錄我有一個像檢索通過SQL
paper Id Author Id
1 15
2 13
3 12
3 11
4 10
4 10
4 9
我要選擇具有多個文件數據authors.So我的數據應該看起來像
paper Id Author Id
3 12
3 11
4 10
4 9
我試着用SQL查詢:
statement<-"SELECT PaperId,AuthorId,COUNT(PaperId)
FROM author_data_pap_aut
GROUP BY PaperId,AuthorId
HAVING (COUNT(*) >1)"
但它不工作。我如何得到預期的結果
感謝
「*它不工作*」不是可接受的錯誤描述並且請爲您正在使用的DBMS添加標籤(Postgres,Oracle,...) –