Review the essentials
In this exercise you must prepare the data you need (title
& description
) to run a promotion for the store's Italian
& French
language films from 2005.
To practice the essentials you will prepare this query one step at a time.
Practice the essentials
In this exercise you are preparing list of your top paying active
customers. The data you will need are the names of the customer sorted by the amount
they paid.
Transform numeric & strings
For
this exercise you are planning to run a 50% off promotion for films
released prior to 2006. To prepare for this promotion you will need to
return the films that qualify for this promotion, to make these titles
easier to read you will convert them all to lower case. You will also
need to return both the original_rate
and the sale_rate
.
In this exercise you would like to learn more about the differences in payments between the customers who are active and those who are not.
A VIEW of all your columns
In this exercise you will create a new tool for finding the tables and columns you need. Using the system table information_schema.columns
you will concatenate the list of each table's columns into a single entry.
Once you've done this you will make this query easily reusable by creating a new VIEW
for it called table_columns
.
Tools for finding your data
Creating new tables:
Using existing data
You
are interested in identifying and storing information about films that
are family-friendly. To do this, you will create a new table family_films
using the data from the film
table. This new table will contain a subset of films that have either the rating G
or PG
.
A family friendly movie store
Your
company has decided to become a family friendly store. As such, all R
& NC-17 movies will be cleared from the inventory.
You will take the steps necessary to clear these films from both the inventory
and the film
tables.
No comments:
Post a Comment