项目作者: AbhishekRaval
项目描述 :
A database project which has two parts - create database with normalization rules and write up full length queries to perform task asked
高级语言:
项目地址: git://github.com/AbhishekRaval/Social-Network-Database-Project.git
Social-Network-Database-Assignment
I have created a sql database, which is a MySQL Database, you can go to Localhost/PhpMyadmin, and import database, to start working on queries. Some of the queries are really tricky and will test your aptitude, and analytical skills, try hard before looking up to the solutions.
Part-1 : Databse Creation & Normalization
Create a database of Social Network
Requirements
- Users can add their details – (First Name, Last Name, Gender, Date of Birth, Email Id,
Password, Interests). - View others’ details.
- Post something on their timeline.
- View others’ posts.
- Comment on posts.
- ‘Like’ others’ comments or posts.
- Create group.
- View group details.
- View group admin.
- View group posts.
- Send friend requests.
- View friends
- View online friends
Points to keep in mind while creating database
- User can have multiple posts
- Each post can have more than one comments
- User can comment on a post more than once
- User can either like or dislike a comment or post i.e., like only once on a
post/comment - A group can have only one group admin
- A user can be a member of more than one groups
Part-2 : Writing Up Queries
- View users’ all posts and display the number of likes and number of comments to that
post. - Display the comments posted by the user.
- Display the online friends of a particular user.
- Display the Group name, number of members of that Group and admin of that
Group. - Display the Members of the particular Group.
- Display post which don’t have any like.
- Display post which don’t have any comment.
- Display post which are liked by user’s friend.
- Display Comments of a particular user which are liked by user’s friends.
- Display Posts of a particular user which are liked by user’s friends.
- Display Posts to particular group and also display the user’s name who posted it.
- Display posts of a group that is not liked by anyone.