SELECT
D.*
FROM
D
INNER JOIN
(
SELECT
MOVIE
, MAX(VISITS) AS VISITS
FROM D
GROUP BY MOVIE) F ON D.MOVIE = F.MOVIE AND D.VISITS = F.VISITS
rdkleine
2010-08-03 10:55:20
SELECT
D.*
FROM
D
INNER JOIN
(
SELECT
MOVIE
, MAX(VISITS) AS VISITS
FROM D
GROUP BY MOVIE) F ON D.MOVIE = F.MOVIE AND D.VISITS = F.VISITS