Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions actor_select.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT * FROM actor;
3 changes: 3 additions & 0 deletions actor_unique_last_name.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT COUNT(DISTINCT last_name) AS unique_last_name from actor;
3 changes: 3 additions & 0 deletions customer_select.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT * FROM customer;
3 changes: 3 additions & 0 deletions film_select.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT * FROM film;
3 changes: 3 additions & 0 deletions film_title_select.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT title FROM film;
3 changes: 3 additions & 0 deletions first_name_scarlett.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT * FROM actor WHERE first_name='SCARLETT'
3 changes: 3 additions & 0 deletions language_name_language_alias.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT name as language FROM language;
3 changes: 3 additions & 0 deletions longest_10_films.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT title,film.length AS film_length from film order by film.length desc LIMIT 10;
5 changes: 5 additions & 0 deletions number_of_employees_count.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
USE sakila;

SELECT count(*) as staff_count from staff;


3 changes: 3 additions & 0 deletions release_year_distinct.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT DISTINCT release_year FROM film;
3 changes: 3 additions & 0 deletions show_tables.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SHOW TABLES;
3 changes: 3 additions & 0 deletions staff_first_name.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT first_name FROM staff;
3 changes: 3 additions & 0 deletions stores_count.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT count(*) AS count from store;
3 changes: 3 additions & 0 deletions tota_inventory_count.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT COUNT(*) AS total_inventory FROM inventory;
3 changes: 3 additions & 0 deletions tota_rental_count.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
USE sakila;

SELECT COUNT(*) AS total_rental FROM rental;