Question: Advanced SQL Exercises The Exercises for this Assignment will explore, using the MySQL Database Management system, some Advanced SQL concepts, which may be used in
Advanced SQL Exercises
The Exercises for this Assignment will explore, using the MySQL Database Management system, some Advanced SQL concepts, which may be used in the Implementation Phase of the Systems Development Lifecycle.
For this Assignment, complete the following Exercises Include SQL and Output:
Using the MySQL SAKILA example Database, write a SQL statement in two ways to List the Film Titles and Category Names of all the films starring Renee Ball. Write the Query as a JOIN and as a SUBQUERY
List the email ID and country name of all the inactive customers in the MySQL SAKILA example database.
Using the MySQL WORLD example Database, write SQL Query to list the name and the population of all the cities in Norway ordered by population from highest to lowest.
Create a View using MySQL WORLD Example Database Tables that lists the Country Name and Language of all the countries where of the population in that country speak that language
Then write a SQL Query using the View to find the language spoken by of the population in Cuba.
Create a Stored Procedure getregion which will take as an input parameter the name of a country and will have an output parameter that will store the region
So for example, after creating the stored procedure in the WORLD database, and executing call getregionUkraine @r; then select @r; will return Eastern Europe
NOTE: You may need to use the MySQL command "delimiter" to temporarily use some other symbol besides the semicolon ; to separate statements so that you would be able to store the semicolon ; into the procedure when creating it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
