Giter Site home page Giter Site logo

digital_music_data_analysis's Introduction

alt text

Music_Store_Data_Analysis ๐Ÿ—‚๏ธ

SQL project to analyze ๐Ÿ“Š online music ๐ŸŽถ store data

This project is for beginners in SQL to analyze the music playlist ๐Ÿ”€ database. You can examine the dataset with SQL and help the store understand its business growth by answering simple questionsโ“.

Database and Tools

  • pg_admin v7.4
  • PostgreSQL

Data Sourcing and Structure

All data was obtained from here The Data base contain music labels and profiles of 11 tables namely, album, artist, customer, employee, genre, invoice, invoice_line, media_type, playlist, playlist_track and track Each table contain at least a primary key and at least a foreign key as shown in the ER diagram below

alt text

Queestion set 1-Easy

Who is the senior most employee based on job title?

alt text

Which countries have the most Invoice?

alt text

What are top 3 values of total invoice?

alt text

Which city has the best customers? We would like to throw a promotional Music Festival in the city we made the most money. Write a query that returns one city that has the highest sum of invoice totals. Return both the city name & sum of all invoice totals

alt text

Who is the best customer? The customer who has spent the most money will be declared the best customer. Write a query that returns the person who has spent the most money

alt text

Question set 2- Medium

Write query to return the email, first name, last name, & Genre of all Rock Music listeners. Return your list ordered alphabetically by email starting with A

alt text

Let's invite the artists who have written the most rock music in our dataset. Write a query that returns the Artist name and total track count of the top 10 rock bands

alt text

Return all the track names that have a song length longer than the average song length. Return the Name and Milliseconds for each track. Order by the song length with the longest songs listed first

alt text

Question set 3- Hard

Find how much amount spent by each customer on artists? Write a query to return customer name, artist name and total spent

alt text

We want to find out the most popular music Genre for each country. We determine the most popular genre as the genre with the highest amount of purchases. Write a query that returns each country along with the top Genre. For countries where the maximum number of purchases is shared return all Genres

alt text

Write a query that determines the customer that has spent the most on music for each country. Write a query that returns the country along with the top customer and how much they spent. For countries where the top amount spent is shared, provide all customers who spent this amount.

alt text

digital_music_data_analysis's People

Contributors

gbekoilias avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.