Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Now, you'll create a database from scratch. Create a database representing LinkedIn from scratch, as by writing a set of CREATE TABLE statements in a
Now, you'll create a database from scratch.
Create a database representing LinkedIn from scratch, as by writing a set of CREATE TABLE statements in a linkedin.sql file. The implementation details are up to you, though you should minimally ensure that your database meets the platforms specification and that it can represent the given sample data.
Users
The heart of LinkedIns platform is its people. Your database should be able to represent the following information about LinkedIns users:
Their first and last name
Their username
Their password. No need to worry about hashing passwords.
Schools and Universities
LinkedIn also allows for official school or university accounts, such as that for HackYourFuture Belgium, so alumni ie those whove attended can identify their affiliation. Ensure that LinkedIns database can store the following information about each school:
The name of the school
The type of school egElementary SchoolMiddle SchoolHigh SchoolLower SchoolUpper SchoolCollegeUniversity etc.
The schools location
The year in which the school was founded
Companies
LinkedIn allows companies to create their own pages, like the one for HackYourFuture Belgium, so employees can identify their past or current employment with the company. Ensure that LinkedIns database can store the following information for each company:
The name of the company
The companys industry egEducationTechnologyFinance etc.
The companys location
Connections
And finally, the essence of LinkedIn is its ability to facilitate connections between people. Ensure LinkedIns database can support each of the following connections.
Connections with People:
LinkedIns database should be able to represent mutual reciprocal twoway connections between users. No need to worry about oneway connections, such as user A following user B without user B following user A Connections with Schools
A user should be able to create an affiliation with a given school. And similarly, that school should be able to find its alumni. Additionally, allow a user to define:
The start date of their affiliation ie when they started to attend the school
The end date of their affiliation ie when they graduated if applicable
The type of degree earnedpursued egBAMAPhD etc.
Connections with Companies:
A user should be able to create an affiliation with a given company. A company should be able to find its current and past employees.
Additionally, allow a user to define:
The start date of their affiliation ie the date they began work with the company
The end date of their affiliation ie when left the company if applicable
The title they held while affiliated with the company
Your database should be able to represent...
A user, Alan Garber, whose username is alan and password is password
A user, Reid Hoffman whose username is reid and password is password
A school, Harvard University, which is a university located in Cambridge, Massachusetts, founded in
A company, LinkedIn, which is a technology company headquartered in Sunnyvale, California.
Alan Garbers undergraduate education at Harvard, pursuing a BA from September st to June st
Reid Hoffmans employment with LinkedIn as its CEO and Chairman, from January st to February st
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started