Skip to content

DeleLinus/Zetel-Case-Study-DMDD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tech Stack

MySQL

Table of Contents

Zetel Case Study (DMDD)

(MIS602-Data Modelling and Database Design Assignment1- Torrens University Australia)

Exploratory Data Analysis using SQL to answer business requirements and extract key business information about Zetel Company.

During this project, the following SQL concepts were covered along with many others:

  • GROUP BY aggregate function
  • Common Table Expressions (CTE)
  • VIEWS
  • JOIN and NESTED queries

Introduction

Zetel is a mobile phone company with a number of phones that are sold by staff to various clients. Each phone comes with a plan and each plan has a number of features specific to that plan including:

  • a call charge in cents per minute (this does not apply to all plans)
  • a plan duration in months
  • a break fee if the customer leaves the plan before the end of the plan duration
  • a monthly data allowance in gigabytes

The database contains seven (7) tables with many columns of data about Zetel Customers, Staffs, Infrastructures, services and its usage. The database nodel is as shown below: Screenshot (293)

All Queries are available in the script file. and the queries and results compiled in the uploaded document file

Questions Explored

  1. List the total number of connections made.
  2. List all the staff whose address contains the character string ‘st’ ignoring the case.
  3. List all the customers who are not active.
  4. Which plan gives the second biggest data allowance?
  5. List the staff who gets more than the average hourly rate.
  6. List the top two selling plans.
  7. List all the customers on “Extra small” plan.
  8. From which towerId was the most recent call made?
  9. List all the customers who owned a phone of the same colour as the customer ‘Rajoo’
  10. List all the customers (customer Id and name) having more than one mobile number.
  11. The company decided to re-name the budget3 plan to budget3Extra.
    • How many customers will be affected? Show SQL to justify your answer.
    • Write an SQL query which will update the database to reflect the upgrades?
  12. List the names of all the staff who have a supervisor, along with their supervisor’s name.
  13. Who is the longest serving staff? Display the StaffId, full name, date joined and the total years served.
  14. List all plans that have never been used by any customer. Show the query using:
    • Nested Query
    • SQL Join
  15. List the customer ID, customer name, phone number and the total number of hours (assume call duration is in seconds) the customer was on the phone during August of 2019 from each phone number the customer owns. Order the list from highest to the lowest number of hours.
    • Create a view that shows the popularity of each plan (i.e. how many plans are on each phone).
    • Use this view in a query to determine the most popular plan.
  16. List the total number of connections made on each tower location after 2018.
  17. List all the details of the most recently joined and oldest joined Samsung phone user.
  18. Produce a list of staff who joined on the same month.

Sample Queries and Results

Q-16 Screenshot (294)

Q-14a and Q14b Screenshot (295)

Acknowledgements

About

(MIS602-Data Modelling and Database Design Assignment1) Exploratory Data Analysis using SQL to answer business requirements and extract key business information about Zetel Company

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors