select lastname, firstname
from person
group by lastname, firstname
having 50 >=
(select count(p.personid) from filmparticipation x, film f, person p
where f.filmid = x.filmid and
x.personid = p.personid and
x.parttype = 'cast'
);
짧은 소개, 동영상 데이터베이스를 기반으로합니다. 이 쿼리를 통해 나는 영화에 50 번 이상 등장하는 배우를 얻게되었습니다. 알아 두어야 할 점은, 영화에는 영화가 포함되어 있으며, 영화와 관련된 인물이있는 영화 관람가로 파싱됩니다. p.personid에는 성 및 이름이 들어 있습니다. 모든 지침이 preciated됩니다 :)SQL 카운터 오류
그리고 무엇이 잘못 되었나요? – Blorgbeard
카운터가 전혀 작동하지 않습니다 ... –