Created
December 25, 2010 10:05
-
-
Save mdornseif/754805 to your computer and use it in GitHub Desktop.
Dedutpe Table buchdurchschnittspreis2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM buchdurchschnittspreis2 | |
WHERE id in | |
(SELECT buchdurchschnittspreis2.id FROM buchdurchschnittspreis2 | |
LEFT OUTER JOIN (select min(id) as id from buchdurchschnittspreis2 | |
GROUP BY (artnr, datum) as KeepRows | |
ON buchdurchschnittspreis2.id=KeepRows.id | |
WHERE KeepRows.id IS NULL); |
DELETE FROM buchdurchschnittspreis2
WHERE id in
(SELECT buchdurchschnittspreis2.id FROM buchdurchschnittspreis2
LEFT OUTER JOIN
(select min(id) as id from buchdurchschnittspreis2
GROUP BY (artnr, datum)) as KeepRows
ON buchdurchschnittspreis2.id=KeepRows.id
WHERE KeepRows.id IS NULL);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Syntax error (mismatched parentheses)