All pastes #422098 Raw Edit

Something

public text v1 · immutable
·published 2007-04-03 07:46 UTC
rendered paste body
SELECT movie.name, max(total)
FROM (SELECT mid, count(pid) total
      FROM cast
GROUP BY mid) total_cast 
WHERE movie.id = cast.mid