Skip to content
Open

done #509

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions 1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
use sakila;

select * from actor;
select * from film;
select * from customer;

select titles from film;
select name as aliased from language;
select first_name from staff;

select distinct release_year from film;

select count(store_id) from store;
select count(staff_id) from staff;

SELECT
COUNT(*) AS currently_rented,
(SELECT COUNT(*) FROM inventory) - COUNT(*) AS currently_available
FROM rental
WHERE return_date IS NULL;

SELECT COUNT(DISTINCT last_name) AS distinct_last_names
FROM actor;

select * from film
order by length desc
limit 10;

select * from actor
where first_name = "SCARLETT";

select * from film
where special like '%ARMAGEDDON%' and length > 100;

select count(*) from film
where special_features like '%Behind the Scenes%';