Giter Club home page Giter Club logo

project-one-for-all's Introduction

Project MySQL One for All

  • Project to normalize and populate a table in the third normal form, and access its informations through SQL queries.

Requirements

Challenge 1 ✔️
  • Create SpotifyClone database
Challenge 2 ✔️
  • Create QUERY to exhibit 3 columns (cancoes, artistas and albuns):
  1. cancoes must exhibit total amount of songs
  2. artistas must exhibit total amount of artists
  3. albuns must exhibit total amount of albums
Challenge 3 ✔️
  • Create QUERY to exhibit 3 columns (usuario, qtde_musicas_ouvidas and total_minutos):
  1. usuario alias must display user name
  2. qtde_musicas_ouvidas must display total amount of songs listened by user based on reproduction history
  3. total_minutos must display total minutes listened by user based on reproduction history
Challenge 4 ✔️
  • Create QUERY to display active users in 2021, based on most recent date in reproduction history:
  1. usuario alias must display user name
  2. condicao_usuario must display whether user is active or not
Challenge 5 ✔️
  • Create QUERY to check top 2 played songs in the moment:
  1. cancao alias must display song name
  2. reproducoes alias must display how many users played the song
Challenge 6 ✔️
  • Create QUERY to check company billing:
  1. faturamento_minimo alias must display the lowest existing plan value for a user.
  2. faturamento_maximo alias must display the highest existing plan value for a user.
  3. faturamento_medio alias must display the average value of plans owned by users so far.
  4. faturamento_total alias must display the total value earned from plans owned by users.
Challenge 7 ✔️
  • Create QUERY to relate albums to followers:
  1. artista alias must display artist name.
  2. album alias must display album name.
  3. seguidores alias must display the quantity of followers for each given artist.
Challenge 8 ✔️
  • Create QUERY to relate albums to artists:
  1. artista alias must display artist name.
  2. album alias must display album name.
Challenge 9 ✔️
  • Create QUERY to display quantity of songs in an user reproduction history:
  1. quantidade_musicas_no_historico alias must display quantity of songs.
Challenge 10 ✔️
  • Create QUERY to exhibit name and times a song was played by an user using free or personal plans:
  1. nome alias must display song name.
  2. reproducoes alias must display how many users listened to given song.

Bonus Requirements

Challenge 11 ✔️
  • Create QUERY to change and sort song names:
  1. nome_musica alias must display original song name.
  2. novo_nome alias must display altered song name.

In the last word of a song name:

  • Change Streets by Code Review
  • Change Her Own by Trybe
  • Change Inner Fire by Project
  • Change Silly by Nice
  • Change Circus by Pull Request

Language and Tools

mysql MySQL

javascript JavaScript

Get started

With Docker
👉 Docker-compose was provided by Trybe

⚠️ Before you start, you must check if your docker-compose version is 1.29 or higher

  • Run node and db by running:
$ docker-compose up -d
  • Open interactive terminal using:
$ docker exec -it one_for_all bash
  • Install dependencies, inside the container, with:
$ npm install
Install it locally
  • Open terminal and create a directory in your preferred location:
$ mkdir <Your directory name here>
  • Access directory then clone the repository:
$ cd <Your directory name here>
$ git clone [email protected]:ViniGB/Project-One-for-all.git
  • Access the newly created directory:
$ cd Project-One-for-all
  • Install dependencies:
$ npm install

project-one-for-all's People

Contributors

vinigb avatar trybe-tech-ops avatar

Stargazers

Roman avatar GugaSantos 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.