Skip to content

Atliq Hardware is one of the leading computer hardware producers in India and has well-established operations in other countries too. The management is looking for information about the consumer goods industry using sales and financial statistics. This project uses SQL queries and Plotly visualisations to produce insights into the data.

License

Notifications You must be signed in to change notification settings

jishnukoliyadan/Atliq-Hardwares-SQL-Challenge4

Repository files navigation

Atliq Hardware : A financial and sales analysis

Challenge

Provide Insights to Management in Consumer Goods Domain

Domain

Consumer Goods | Function : Excecutive Management

Problem statement

  • Atliq Hardware (imaginary company) is one of the leading computer hardware producers in India and well expanded in other countries too.
  • However, the management noticed that they do not get enough insights to make quick and smart data-informed decisions.
  • Hence, company decided to conduct a SQL challenge which will help them to understand the data.

Task :

  1. Check ad-hoc-requests.pdf - there are 10 ad hoc requests for which the business needs insights.
  2. Need to run a SQL query to answer these requests.
  3. The target audience of this dashboard is top-level management - hence want to create a presentation to show the insights.

Querying Solutions

I've used MySQL to query the data base. The database file is available in atliq_hardware_db.sql file.

1. Data Model

Data Model

2. Database creation

To convert this atliq_hardware_db.sql file into MySQL database, run the bellow codes.

  1. Connect to MySQL Server using terminal using mysql -u root -p and enter the password.
  2. Once the connection is sucessfull type, source RAW_Files/atliq_hardware_db.sql to generate Atliq Hardware's database.

Steps to connect and create database in MySQL via terminal - Ubuntu

3. SQL Query

Method 1 : Using SQL File

We can use the SQL_Query.sql to run all the queries using MySQL terminal or MySQL Workbench. To run using terminal use the code,

source SQL_Query.sql

How to run SQL_Query.sql using terminal

Method 2 : Using Python

We can utilize the MySQL python library and Jupyter Notebook for this. The SQL_Query.ipynb shows how to connect to a MySQL database using python and how to run the quries.

Reports and Presentations

Reports

Presentations

A sample slide from presentation

sample slide from presentation

  • The presentations to the top-level management is stored in Presentation.pdf as PDF version and Presentation.pptx for powerpoint version.

  • The plots for the presentations was made using Plotly viisualization. The notebook used to create plots is Presentation_plots.ipynb.

    • NOTE : This notebook is not a rendered one. Due to upload size restriction GitHub rejected the rendered one.

NOTE

  1. More details of the problem statement and data is available at codebasics.io

  2. credentials.py only contains MySQL root password, it is created to protect the password. Bellow code shows what contains inside credentials.py file.

db_password = 'Type-your-MySQL-root-password-here'
  1. In DB_to_CSV.py file, the MySQL password entered as,
from credentials import db_password

mydb = mysql.connector.connect(host = 'localhost', user = 'root',
                        password = db_password, database = 'gdb023')
                        
cursorObject = mydb.cursor()

Certificate of Appreciation from codebasics.io

sample slide from presentation

License

The license can be found in the LICENSE file.

About

Atliq Hardware is one of the leading computer hardware producers in India and has well-established operations in other countries too. The management is looking for information about the consumer goods industry using sales and financial statistics. This project uses SQL queries and Plotly visualisations to produce insights into the data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published