Reputation: 323
I have 3 tables:
The problem is that I want to select all filmname
from film tables where category_id = 3.
How to do this mysql select?
Upvotes: 0
Views: 69
Reputation: 10548
select
film.filmname
from
film
join film_category
on film.film_id = film_category.film_id
where
film_category.category_id = 3
Upvotes: 4
Reputation: 198324
SELECT filmname
FROM film NATURAL JOIN film_category
WHERE category_id = 3
Upvotes: 0