Instagram User Analysis
Instagram User Analysis
The project is about finding out the various insights in Instagram User database. We analyze this
data and some following questions:
1) Find the 5 oldest users of the Instagram from the database provided
2) Find the users who have never posted a single photo on Instagram
3) Identify the winner of the contest and provide their details to the team
4) Identify and suggest the top 5 most commonly used hashtags on the platform
5) What day of the week do most users register on? Provide insights on when to schedule an
ad campaign
6) Provide how many times does average user posts on Instagram. Also, provide the total
number of photos on Instagram/total number of users
7) Provide data on users (bots) who have liked every single photo on the site (since any
normal user would not be able to do this).
APPROACH
I have analyzed the database carefully. Observe all the tables, columns, rows, and relationship
among all the tables. Then I have started to create tables in mysql server. After finishing creating
table, I have added the data into each table. Afterwards check all the tables’ content carefully.
Then one by one I have executed queries according to the questions asked.
TECH-STACK USED
I have used Microsoft SQL Server Management Studio to execute my sql queries because it is
cost-free and give advanced user experience.
INSIGHTS
I have gained knowledge of various SQL functions which helped me to solve the questions asked
in this project.
Task - 1 Find the 5 oldest users of the Instagram from the database provided
Query:
Output:
Task-2 Find the users who have never posted a single photo on Instagram
Query:
Output:
Task-3 Identify the winner of the contest and provide their details to the team
Query:
Task-4 Identify and suggest the top 5 most commonly used hashtags on the platform
Query:
Output:
Task-5 What day of the week do most users register on? Provide insights on when to
schedule an ad campaign
Query:
Output:
The team need to arrange ad campaign on Thursday as there are more users registered on
Thursday.
B) Investor Metrics:
Task-1 Provide how many times does average user posts on Instagram. Also, provide the
total number of photos on Instagram/total number of users
Query:
SELECT
COUNT(*) / COUNT(DISTINCT(p.user_id)) AS AvgPostsPerUsers,
COUNT(p.image_url) AS TotalNumOfPosts
FROM photos p
Output:
Query:
SELECT COUNT(id) AS TotalNumOfUsers FROM users
Output:
Task-2 Provide data on users (bots) who have liked every single photo on the site (since any
normal user would not be able to do this).
Query:
Output: