MYSQL - Practice Exercise-1 - Final - Questions
MYSQL - Practice Exercise-1 - Final - Questions
Note – Once MYSQL installation is complete, click on MYSQL workbench option available in
the installed MYSQL to launch MY SQL Workbench.
Once Workbench is launched, connect using the administrator login and password.
Once connected, use the sample database “Sakila” and /or “World” as per the instruction of
the exercises.
Q3 Display the schema which was used to create table “actor” and view the
complete schema using the viewer. (1 row)
Q4 Display the first and last names of all actors from the table actor. (200
rows)
Q6 Display the first and last name of each actor in a single column in upper
case letters. Name the column Actor Name. (200 rows)
Q7 You need to find the ID number, first name, and last name of an actor, of
whom you know only the first name, "Joe." What is one query would you use
to obtain this information? (1 row)
Q9 List the last names of actors, as well as how many actors have that last
Q10 Use JOIN to display the first and last names, as well as the address, of
each staff member. Use the tables “staff” and “address”. (2 rows)
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Use “world” database for the following questions
Q2 Modify the above query to display from row # 16 to 20 with all columns.
(5 rows)
Q4 Using city table find out which is the most populated city.
('Mumbai (Bombay)', '10500000')
Q8 Order the data by city name and get first 10 cities from city table.
Q10 What is the value of name and population in the rows with ID =5, 23, 432
and 2021. Pl. write a single query to display the same. (4 rows).
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.