Oracle gives an error for the following code:
SELECT actor_name,
char_name
FROM zActor AS zAct,
zCharacter AS zChar
WHERE zChar.char_num IN
(SELECT COUNT(zP.char_num) AS charCount
FROM zPlay AS zP,
zActor AS zAct,
zCharacter AS zChar
WHERE zAct.actor_num = zP.actor_num
AND zChar.char_num = zP.char_num
GROUP BY zAct.actor_name
HAVING COUNT(zP.char_num) > 1);
I cannot figure out why because I am somewhat new to oracle but have a good grasp on SQL. Any help is appreciated.