SQL -Project 1-"Analysis of a Customer-to-Customer Business Model Using User Data: A MySQL Approach"
Business model Customer to Customer (C2C) allows customers to do business with each other. This model is growing fast with e-commerce platforms where sellers may be required to pay some amount and buyer can buy it without paying anything. E-Commerce website brings the seller and buyer to the same platform.
Analyzing the user's database will lead to understanding the business perspective. Behaviour of the users can be traced in terms of business with exploration of the user’s database.
Dataset: One .csv file with name users_data with 98913 rows and 27 columns
Tasks to be performed
- Create new schema as ecommerce
- Import .csv file users_data into MySQL
(right click on ecommerce schema -> Table Data import Wizard -> Give path of the file -> Next -> choose options : Create a new table , select delete if exist -> next -> next) - Run SQL command to see the structure of table
- Run SQL command to select first 100 rows of the database
- How many distinct values exist in table for field country and language
- Check whether male users are having maximum followers or female users.
- Calculate the total users those
- Uses Profile Picture in their Profile
- Uses Application for Ecommerce platform
- Uses Android app
- Uses ios app
- Calculate the total number of buyers for each country and sort the result in descending order of total number of buyers. (Hint: consider only those users having at least 1 product bought.)
- Calculate the total number of sellers for each country and sort the result in ascending order of total number of sellers. (Hint: consider only those users having at least 1 product sold.)
- Display name of top 10 countries having maximum products pass rate.
- Calculate the number of users on an ecommerce platform for different language choices.
- Check the choice of female users about putting the product in a wishlist or to like socially on an ecommerce platform. (Hint: use UNION to answer this question.)
- Check the choice of male users about being seller or buyer. (Hint: use UNION to solve this question.)
- Which country is having maximum number of buyers?
- List the name of 10 countries having zero number of sellers.
- Display record of top 110 users who have used ecommerce platform recently.
- Calculate the number of female users those who have not logged in since last 100 days.
- Display the number of female users of each country at ecommerce platform.
- Display the number of male users of each country at ecommerce platform.
- Calculate the average number of products sold and bought on ecommerce platform by male users for each country.
explaination:
The task involves analyzing a customer-to-customer (C2C) business model using a dataset containing user information. The dataset has 98913 rows and 27 columns. The tasks include importing the dataset into MySQL, checking the structure and selecting the first 100 rows. The analysis involves finding the distinct values for country and language, determining whether male or female users have more followers, and calculating various statistics such as the number of users with profile pictures, buyers and sellers by country, and product pass rates by country. Other tasks include analyzing user choices regarding wishlists and social likes, as well as gender-based analysis of buying and selling choices. The analysis also involves finding the number of users who have not logged in for a certain period and calculating the average number of products bought and sold on the platform by male users for each country.