Note: For a better view of the exercise and solution panel, please close the left sidebar.
This is the Chinook sample database representing a digital media store. The database contains information about the store's music catalog, including artists, albums, tracks, and media types, as well as customer data, invoices, and employee information.
The dataset includes various tables that allow you to explore relationships between artists and their albums, track sales and customer purchases, employee hierarchies, and customer demographics across different countries. You can analyse sales performance, customer behavior, music catalog statistics, and business operations from multiple perspectives.
Your resulting table should have city names only.
Sort the table by customer first names alphabetically, then by their last names in reverse alphabetically.
Sort the table by the bill amount from highest to lowest.
Sort the table by the bill total from highest to lowest.
Your resulting table should have unique country names only. Sort the table by country names alphabetically.
Sort the table by state then city names, both alphabetically.
Your resulting table should have unique city names only. Sort the table by city names alphabetically.
Sort the table by their last names.
Sort the table by InvoiceDate from earliest to latest.
If there are multiple invoices with the same price, show the first one that appears in alphabetical order of Billing Postal Code.
Round the number of months down to the nearest integer. For example: 20 months 28 days will be considered 20 months.
Your resulting table should have employee last name, first name and the number of months they have worked for.