Professional Documents
Culture Documents
Project Name - Instagram User Analytics
Project Name - Instagram User Analytics
Approach:
To achieve the project's goals, we utilized SQL queries to extract relevant
information from the Instagram database. Our approach involved executing
specific queries to answer each question posed by the marketing team and
investors. These queries involved joining tables, aggregating data, and
sorting results based on various criteria. By combining these techniques,
we derived meaningful insights and provided actionable recommendations.
Tech-Stack Used:
1. Database Management System: MySQL
2. SQL Query Language: We executed SQL queries to retrieve and analyze
data from the database.
3. Tools: We utilized MySQL Workbench (or a similar MySQL client) to
execute queries and interact with the database.
Insights:
A. Marketing
SQL Query:
Output:
username created_at
SQL Query:
SELECT username
FROM users
WHERE id NOT IN (
SELECT DISTINCT user_id
FROM photos
);
Output:
username
Aniya_Hackett
Kasandra_Homenick
Jaclyn81
Rocio33
Maxwell.Halvorson
Tierra.Trantow
Pearl7
Ollie_Ledner37
Mckenna17
David.Osinski47
Morgan.Kassulke
Linnea59
Duane60
Julien_Schmidt
Mike.Auer39
Franco_Keebler64
Nia_Haag
Hulda.Macejkovic
Leslie67
Janelle.Nikolaus81
Darby_Herzog
Esther.Zulauf61
Bartholome.Bernhard
Jessyca_West
Esmeralda.Mraz57
Bethany20
SQL Query:
Output:
username photo_id likes
Zack_Kem 145 48
mer93
SQL Query:
Output:
tag_name tag_count
smile 59
beach 42
party 39
fun 38
concert 24
5. Best Day for AD Campaigns: By analyzing user registration data, we
found that Thursday had the highest number of user registrations. This
information can guide the marketing team in scheduling ad campaigns
effectively.
SQL Query:
Output:
registration_day registration_count
Thursday 16
SQL Query:
total_photos total_users
257 100
SQL Query:
SELECT u.username
FROM users AS u
JOIN likes AS l ON u.id = l.user_id
GROUP BY u.username
HAVING COUNT(DISTINCT l.photo_id) = (SELECT COUNT(*) FROM
photos);
Output:
username
Aniya_Hackett
Bethany20
Duane60
Jaclyn81
Janelle.Nikolaus81
Julien_Schmidt
Leslie67
Maxwell.Halvorson
Mckenna17
Mike.Auer39
Nia_Haag
Ollie_Ledner37
Rocio33
Result:
Through the analysis of the Instagram database, we gained valuable
insights into user behavior, engagement patterns, contest winners, popular
hashtags, and potential suspicious accounts. These insights can assist the
marketing team in developing effective marketing campaigns, improving
user engagement, and maintaining the authenticity of the platform. The
project provided actionable recommendations for targeted promotions, ad
campaign scheduling, and identifying potential suspicious accounts.