diff --git a/movies.sql b/movies.sql new file mode 100644 index 0000000..16eb0b0 --- /dev/null +++ b/movies.sql @@ -0,0 +1,31 @@ +USE sakila; +SELECT * FROM actor; +SELECT * FROM film; +SELECT * FROM customer; + +SELECT title FROM film; +SELECT name AS language FROM language; +SELECT first_name FROM staff; + +SELECT DISTINCT release_year FROM film; + +SELECT COUNT(*) FROM store; + +SELECT COUNT(*) FROM staff; + +SELECT COUNT(DISTINCT film_id) AS available_films FROM inventory; + +SELECT COUNT(*) AS rented_films FROM rental; + +SELECT COUNT(DISTINCT last_name) AS distinct_actors FROM actor; + +SELECT title, length FROM film ORDER BY length DESC LIMIT 10; + +SELECT * FROM actor WHERE first_name = 'SCARLETT'; + +SELECT * FROM film +WHERE title LIKE '%ARMAGEDDON%' +AND length > 100; + +SELECT COUNT(*) FROM film +WHERE special_features LIKE '%Behind the Scenes%'; \ No newline at end of file