You are on page 1of 23

INSTAGRAM USER

ANALYTICS
BY
JUGAL SUNIL
Project Description
User Analysis is the process by which we determine the characteristics of all the modern world users
for the future development of the software or mobile applications.
These are mainly conducted by the working team of the respected organisations, so that we can
analyse the the particular softwares feature by measuring user engagements and interests.
Approach
Analysing and measuring user engagement and their attributes is very important while developing a
new software or applications in order to provide a user friendly experience for the people.
Tech- Stack Used
Visual Studio Code
Version: 1.74.3 (user setup)
Visual Studio Code is a graphical code editor for Linux , macOS and Windows. It supports
extensions like SQLTools, SQLTool PostgreSQL and many more which helps me in completing this
project.
Insights
One of the main thing is I started realizing the importance of Data Analytics in the current
technology.
Another important thing is how we can keep track of an applications metrics, how can be a
application or a software can reach its success in the current world by analysing the datas.
Result
As a result of completing this project

Learned new concepts in analysing data of an application.


This project has helped me look at a problem and effectively find its solution.
A - 1) Find the 5 oldest users of the Instagram from the database provided

SELECT * FROM users ORDER BY created_at LIMIT 5;


Output
2) Find the users who have never posted a single photo on Instagram

SELECT username
FROM users LEFT JOIN photos
ON users.id = photos.user_id
WHERE photos.id is NULL;
OUTPUT
3) Identify the winner of the contest and provide their details to the team

SELECT * FROM photos;


SELECT * FROM likes;
SELECT photos.id, photos.image_url, count(*) AS total
FROM photos INNER JOIN likes
ON likes.photo_id = photos.id
GROUP BY photos.id
ORDER BY total DESC
LIMIT 1;
OUTPUT
4) Identify and suggest the top 5 most commonly used hashtags on the platform

SELECT
tags.tag_name,
COUNT(*) AS total
FROM photo_tags
JOIN tags
ON photo_tags.tag_id = tags.id
GROUP BY tags.id
ORDER BY total DESC
LIMIT 5;
OUTPUT
5)What day of the week do most users register on? Provide insights on when to schedule an ad
campaign

SELECT
DAYNAME(created_at) AS day,
COUNT(*) AS total
FROM users
GROUP BY day
ORDER BY total DESC
LIMIT 2;
OUTPUT
B- 1) Provide how many times does average user posts on Instagram. Also, provide the total
number of photos on Instagram/total number of users

SELECT(SELECT COUNT(*) FROM photos) / (SELECT COUNT(*) FROM users) AS


Average;
OUTPUT
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).

SELECT username,
COUNT(*) AS num_of_likes
FROM users INNER JOIN likes
ON users.id = likes.user_id
GROUP BY likes.user_id HAVING num_of_likes = (SELECT COUNT(*)FROM
photos);
OUTPUT
THANK YOU

You might also like