-
-
Save uncoded-ro/c1078ca92d7975cfc4a9664b96c0da50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE | |
OR REPLACE | |
DEFINER = airman@'localhost' | |
SQL SECURITY DEFINER | |
VIEW sakila.view_films_catagory AS | |
SELECT c.name, COUNT(f.film_id) AS no_films | |
FROM sakila.category c LEFT OUTER JOIN sakila.film_category USING(category_id) | |
LEFT OUTER JOIN sakila.film f USING(film_id) | |
GROUP BY c.category_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment