From ba9c1eac3bbe8e181e34e8aa21c70a436d2edaec Mon Sep 17 00:00:00 2001 From: AllwinJWork <123567122+AllwinJWork@users.noreply.github.com> Date: Tue, 7 Mar 2023 17:08:26 +0000 Subject: [PATCH] Create Sql1.sql --- Sql1.sql | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Sql1.sql diff --git a/Sql1.sql b/Sql1.sql new file mode 100644 index 0000000..49ac0cb --- /dev/null +++ b/Sql1.sql @@ -0,0 +1,36 @@ +-- Question 1 +select* from Sakila.actor; +-- Question 2 +Select*From Actor +Where first_name = 'John'; +-- Question 3 +Select*from actor +Where last_name = 'Neeson'; +-- Question 4 +select*from actor +where actor_id %10=0; +-- Question 5 +Select*From Sakila.film +where film_id= 100; +-- Question 6 +Select*From sakila.film +where rating = 'r'; +-- Question 7 +Select*from sakila.film +where rating <> 'r'; +-- Question 8 +Select*from sakila.film +Order by length +limit 10; +-- Question 9 +Select title from sakila.film +order by length +limit 10; +-- Question 10 +Select*from sakila.film +where special_features= 'Deleted Scenes'; +-- Question 11 +Select distinct country from sakila.country; +-- Question 12 +select * from sakila.language +order by name ASC;