-2
I have the following question:
Select the first name (first_name) and title of the film (film) of all(s) the actors/actors/actresses (actor) associated(s) with the movies of the (Category) comedy (Comedy) category (use IN or ANY).
So far I’ve got this:
SELECT first_name, title, COUNT(*)
FROM ACTOR a, CATEGORY c, FILM f, FILM_CATEGORY fc, FILM_ACTOR fa
WHERE a.actor_id = fa.actor_id
AND fa.film_id = c.name in (‘Comedy’)
GROUP BY c.name;
The problem is that it shows nothing. It claims loss in connection with SQL, but I know it is some error in the code, I tried several ways but I could not.
this is a simple problem and I believe that many OS users can answer the full query without problems, but since this is an exercise, I believe it is worth you to study how to solve instead of a user from here giving you the answer by hand, so seeing here you just need to know how JOIN and IN work in this exercise, I believe that only if you read about you will be able to answer and learn properly :) JOIN - https://www.w3schools.com/sql/sql_join.asp IN - https://www.w3schools.com/sql/sql_in.asp
– Paz