0% found this document useful (0 votes)
42 views

Lab 2

The document contains instructions for 9 SQL queries to run against a Sakila sample database: 1) Select the actor_id of actor 58, 2) Retrieve movie names starting with P, 3) Retrieve movies released in 2006, 4) Asks what password was assigned to user "MIKE", 5) Retrieve actors whose first names don't end in T, 6) Find income in August 2005 sorted descending, 7) Select actors between ID 50-150 or last name starting with A, 8) Display actors first names starting and ending with A, 9) Display languages that are not English or French.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Lab 2

The document contains instructions for 9 SQL queries to run against a Sakila sample database: 1) Select the actor_id of actor 58, 2) Retrieve movie names starting with P, 3) Retrieve movies released in 2006, 4) Asks what password was assigned to user "MIKE", 5) Retrieve actors whose first names don't end in T, 6) Find income in August 2005 sorted descending, 7) Select actors between ID 50-150 or last name starting with A, 8) Display actors first names starting and ending with A, 9) Display languages that are not English or French.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

CS220: Database Systems

NAME : Muhammad Waleed Younas REG NO : 461215

FEBRUARY 15, 2024


1. Write a query to Select column “actor_id” from the table “actor” which already exists in the “Sakila”
database where the “actor_id=58”. (Observe the output when you execute the queries.)

2. Write a query to retrieve names of movies starting with P.


3. Write a query to retrieve movies which were released in year 2006?

4. What password did the DBA assign to the user „MIKE‟?


5. Write a query to retrieve data of all actors whose first names are not ending on T.

6. Find and display the Income (payments) generated during August 2005. Sort them in the descending order.
7. Select the names of actors whose IDs are between 50 and 150, or those whose last name starts with A.

8. Display the actor first name which start with A and end on letter A.
9. Write an SQL query to display list of languages which neither is English nor French .

You might also like