Source: Shivan Kumar Case study Project work
To analyze the marketing strategies, understand customer sentiments, and identify key influencers.
#Database Schema
Stores information about social media users, including user_id, username, email, and date_joined.
Contains details about user-generated posts, including post_id, user_id (foreign key from Users table), content, and post_date.
Stores comments made by users on posts, with comment_id, post_id (foreign key from Posts table), user_id (foreign key from Users table), comment_text, and comment_date.
Tracks user likes on posts, with like_id, post_id (foreign key from Posts table), user_id (foreign key from Users table), and like_date.
Manages user following relationships, with follower_id, follower_user_id (foreign key from Users table), following_user_id (foreign key from Users table), and follow_date.
-
Retrieve posts with the highest number of comments for each user.
-
List users who have made comments on posts made by users they are following.
-
Find users who have not received any likes on their posts.
-
Find users who have not liked any post.
-
List users who have liked posts made by users they are following.