You've been added to the DB design team for a small company, and tasked with creating...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You've been added to the DB design team for a small company, and tasked with creating a table or tables as needed to keep track of the company's employees (this will eventually be integrated with the existing DB solution for HR and payroll that the company maintains). Employees may be full-time (aka exempt), part- time (aka hourly), or volunteer (aka unpaid hourly). Employees who are full-time earn an annual salary that ranges from 10k/yr to 300k/yr and gets assigned at the time they first join the company and may get increased about once a year (in which case it would be great to keep a history of salaries assigned to each employee over time). Hourly employees can earn from $15/hr to $100/hr depending on the kind of work they are doing, and they may get raises in which case their assigned rate goes up. Volunteers don't earn any money. For every employee we need to know contact information and who they report to (i.e. their supervisor; every employee reports to someone except for the CEO who reports to the board). We also need to know what type of role or position each employee has. We might want to track that by date as well, as hopefully people are moving through the ranks. Note: You have professional license here to figure out how you feel it makes to interpret these requirements; you just need to make sure your approach makes sense. Using this scenario, please do the following: 1. Create an ERD for the entities and attributes necessary. Do not create entities beyond was is specifically required for this scenario (e.g. no mention is made of tracking a schedule for hourly, so do NOT create an entity for schedule). Remember that you are only drafting a solution for a larger system. (take your time here as your choices will drive everything that comes after) 2. Create a relational schema for the ERD you created. 3. Create SQL statements to create the tables you have identified. Be sure and use constraints to define the PKs and FKs. Add drop table statements before your create statements so that the code may be run repeatedly for testing. 4. Create SQL statements to insert at least one row into each table you have created. 5. Create a SQL statement or statements shows, as well-formatted single output table, the total number of each type of employee and the average compensation by type. 6. BONUS (optional): Add notes about assumptions you made and questions you would like to get answered to better develop your approach. Your submission for this exercise should be in two parts: 1. A PDF of your ERD and Relational Schemas 2. A text file of your SQL statements (with each statement well annotated with comments) and your output for #5. You've been added to the DB design team for a small company, and tasked with creating a table or tables as needed to keep track of the company's employees (this will eventually be integrated with the existing DB solution for HR and payroll that the company maintains). Employees may be full-time (aka exempt), part- time (aka hourly), or volunteer (aka unpaid hourly). Employees who are full-time earn an annual salary that ranges from 10k/yr to 300k/yr and gets assigned at the time they first join the company and may get increased about once a year (in which case it would be great to keep a history of salaries assigned to each employee over time). Hourly employees can earn from $15/hr to $100/hr depending on the kind of work they are doing, and they may get raises in which case their assigned rate goes up. Volunteers don't earn any money. For every employee we need to know contact information and who they report to (i.e. their supervisor; every employee reports to someone except for the CEO who reports to the board). We also need to know what type of role or position each employee has. We might want to track that by date as well, as hopefully people are moving through the ranks. Note: You have professional license here to figure out how you feel it makes to interpret these requirements; you just need to make sure your approach makes sense. Using this scenario, please do the following: 1. Create an ERD for the entities and attributes necessary. Do not create entities beyond was is specifically required for this scenario (e.g. no mention is made of tracking a schedule for hourly, so do NOT create an entity for schedule). Remember that you are only drafting a solution for a larger system. (take your time here as your choices will drive everything that comes after) 2. Create a relational schema for the ERD you created. 3. Create SQL statements to create the tables you have identified. Be sure and use constraints to define the PKs and FKs. Add drop table statements before your create statements so that the code may be run repeatedly for testing. 4. Create SQL statements to insert at least one row into each table you have created. 5. Create a SQL statement or statements shows, as well-formatted single output table, the total number of each type of employee and the average compensation by type. 6. BONUS (optional): Add notes about assumptions you made and questions you would like to get answered to better develop your approach. Your submission for this exercise should be in two parts: 1. A PDF of your ERD and Relational Schemas 2. A text file of your SQL statements (with each statement well annotated with comments) and your output for #5.
Expert Answer:
Answer rating: 100% (QA)
1 Create an EntityRelationship Diagram ERD Identify the entities In this case you have mentioned employees rolespositions and salaries Identify the at... View the full answer
Related Book For
Organizational Behaviour Concepts Controversies Applications
ISBN: 978-0132310314
6th Canadian Edition
Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward
Posted Date:
Students also viewed these databases questions
-
State three ways of using artificial intelligence and machine learning in marketing and explain each use case with two examples.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
The top 5 stocks in the S&P 500 index, when ranked by market capitalization, make up 22% of the total market capitalization of the S&P 500 index. Numerical estimates of the mean (or expected) rates...
-
Rod OA rotates about O in a horizontal plane. The motion of the 400-g collar B is defined by the relations r = 500 + 300 sin ?t and ? = 2?(t2 ?2t), where r is expressed in millimeters, t in seconds,...
-
Hominy, Inc., has debt outstanding with a face value of $2.15 million. The value of the firm if it were entirely financed by equity would be $11.4 million. The company also has 195,000 shares of...
-
If we have a model for the short rate \(r(t)\), show that (a) the zero coupon bond price can be calculated as: \[P(t, s)=\mathbf{E}_{t}\left[e^{\int_{t}^{s} r(u) d u}...
-
At the time of Emile's death, he was a joint tenant with Colette in a parcel of real estate. With regard to the inclusion in Emile's gross estate under 2040, comment on the following independent...
-
8 Sean has a job mowing grass for the city, using a riding mower. He can mow of an acre per hour. How long will he need to mow the 3-acre city park? He will need hours to mow the park. (Type an...
-
8.1 Create a one-way data table for profit at different levels of supplier contact in range B22:C33. Ensure that the price in cell C3 is $290 and the advertising budget in cell C5 is $35,000,000 (you...
-
Which of the following is not a reason for differences in total factor productivity across countries? a. inefficient allocation of factors of production across firms in some countries b. differences...
-
Foreign direct investment decisions are not much different from domestic investment decisions. However, international investment decisions have some features which make their appraisal more...
-
How can FSAs and HSAs be used to manage health-related costs?
-
Value at Risk (VaR) and Expected Shortfall (ES) are two measures of market risk employed by financial institutions and their regulators. a) VaR calculation is based on daily earning at risk (DEAR)....
-
Twin Oaks Brewery (TOB) needs to borrow $20 million immediately. It can borrow for three years at a fixed rate of 7.5% or at a floating rate of LIBOR + 40 basis points. Plain vanilla...
-
The current price of UCD Inc. is $15 per share; put options and call options on the stock both have a strike price of $15 and are selling for $0.75 per option. Suppose on the expiration date the...
-
6. All of the following acts qualify as a white collar crime EXCEPT for which one? A. a bank teller robbing the First National bank B. a police officer taking $100 to refrain from writing a speeding...
-
A manufacturer can sell product 1 at a profit of $20 per unit and product 2 at a profit of $40 per unit. Three units of raw material are needed to manufacture one unit of product 1, and six units of...
-
Identify three activities you really enjoy (for example, playing tennis, reading a novel, or going shopping). Next, identify three activities you really dislike (for example, visiting the dentist,...
-
How might managers use the grapevine for their benefit?
-
Venture conducted a survey to determine workers perceptions of the causes of conflict at work. The top three vote-getters were (1) people who talk too loudly on the phone, (2) office gossip, and (3)...
-
A Pepsi promotion encouraged consumers to collect Pepsi points and redeem them for merchandise. If they did not have quite enough points for the prize they wanted, they could buy additional points...
-
Defendant Kenneth Blake was married to Charlene Hinton-Blake, who died in 2012. Three of Hinton-Blakes sisters, including Yvonne Hinton, assisted her with day-to-day care during a four-year period of...
-
This appeal involves the validity of a will executed in contravention of an earlier contract to make mutual wills. A husband and wife signed a contract to make mutual wills and then executed those...
Study smarter with the SolutionInn App