このクエリ
SELECT
FirstName, LastName, NCAAStats.AccountId, College_Translator.school_name, StatTypeId, COUNT(*) AS 'Count'
FROM NCAAstats
INNER JOIN College_Translator
ON College_Translator.AccountID = NCAAstats.AccountId
GROUP BY FirstName, LastName, NCAAStats.AccountId, College_Translator.school_name, CalendarYear, StatTypeId
HAVING COUNT(*) >1
ORDER BY 'Count' DESC
ISValid
ビットを設定したいレコードを選択し0
ます。
これらのレコードは、入力エラーによりデータベースに 2 回表示されるレコードです。
私は次のようなものを探しています:
UPDATE NCAAstats
SET IsValid = 0
WHERE (my select statement)
これはMS SQL SERVER 2008上にあります
ありがとう!