Question

In: Computer Science

1. Please briefly describe in one short paragraph a valuable business problem that you are interested...

1. Please briefly describe in one short paragraph a valuable business problem that you are interested in solving and how designing a database can help in solving this problem. You should treat this database design project as something you can put on your CV and explain to potential employers (or potential investors if you are pursuing a startup).

2. Create three tables that you will use in your database. Write the SQL code (can be done in PgAdmin or in MS Word etc.). Then write a short paragraph explaining the purpose of each table.

Solutions

Expert Solution

Hi,

Please find the answer below:
-----------------------------------------


Startups are small newly built budding organizations. Often they don’t have the budget to license or acquire industry popular project management tools to manage projects and tasks of its employees.
Without proper time-sheet application for an organization it’s difficult to track productivity in the organization. Time-sheet application works as an effective tracking solution for the management in the startup.


With database for the application we can design tables to store employee’s data, different projects data and the tasks each employee is working on in the project. Database solves the problem of task assignments, backup of data etc. We can even integrate Time-sheet application to the payment module in the organization to manage pay cheque, leaves, appraisals etc in the organization.


-----------------------------------------


Sample Tables in the application

employee table


CREATE TABLE employee (
    empNumber   INT             NOT NULL,
    birthDate DATE            NOT NULL,
    firstName VARCHAR(20)     NOT NULL,
    lastName   VARCHAR(20)     NOT NULL,
    hire_date   DATE            NOT NULL,
    PRIMARY KEY (empNumber)
);


project table

CREATE TABLE project (
projectId int NOT NULL AUTO_INCREMENT,
name varchar(20) ,
manager_id int ,
start_date date NOT NULL,
end_date date NOT NULL,
PRIMARY KEY (projectId),
);


task table

CREATE TABLE task (
taskId int NOT NULL AUTO_INCREMENT,
project_id int ,
start_date date NOT NULL,
end_date date NOT NULL,
PRIMARY KEY (taskId),
CONSTRAINT fk_task_project FOREIGN KEY (project_id) REFERENCES project (projectId)
);


timesheet table

CREATE TABLE timesheet (
id int NOT NULL AUTO_INCREMENT,
employee_id int NOT NULL,
date date,
from_time time,
to_time time,
taskId int NOT NULL,
date_submit date,
PRIMARY KEY (id),
   CONSTRAINT fk_time_account FOREIGN KEY (employee_id) REFERENCES employee (empNumber),
CONSTRAINT fk_ts_task FOREIGN KEY (taskId) REFERENCES task (taskId)
) ;


--------------------------------------------------------------------


Hope this helps.


Related Solutions

In a short paragraph, briefly describe the underlying vulnerabilities that led to the financial crisis of...
In a short paragraph, briefly describe the underlying vulnerabilities that led to the financial crisis of 2007-2008, and the regulatory changes that have been implemented to avoid a repeat of a similar crisis in the future.
Define These Terms in Two Short Paragraph each. One Short Paragraph defining the term, and one...
Define These Terms in Two Short Paragraph each. One Short Paragraph defining the term, and one short paragraph using it in an example. The terms have to relate to international business. 1-Patriotism- 2-Colonialism- 3-Ethnocentric- 4-Acculturation- 5-Developed World- 6-Social Cohesion- 7-Microcredit Banking- 8-Protectionism- 9-Culture- 10-Globalization-
ECOSYSTEMS AND THE BIOSPHERE Define the term “ecosystem” in one sentence. Describe in one short paragraph...
ECOSYSTEMS AND THE BIOSPHERE Define the term “ecosystem” in one sentence. Describe in one short paragraph the general flow of energy and the cycling of nutrients through ecosystems. Identify the differences and similarities between a food chain and a food web. Name and define each trophic level in an ecosystem and cite an example for each level, using the following terms: producer, primary consumer, secondary consumer, tertiary consumer, decomposer, herbivore, carnivore, omnivore, autotroph, and heterotroph.
Briefly describe an example of an intuitively valuable life (it can be someone you know personally...
Briefly describe an example of an intuitively valuable life (it can be someone you know personally or someone you just know of). Explain what makes their life valuable. Does Hedonism do a good job of capturing all the dimensions of value in the life in your example? Why or why not?"
can you please summrize the prolmes in short paragraph please? Is it too late for Tesla?...
can you please summrize the prolmes in short paragraph please? Is it too late for Tesla? What may have started as an ill-advised bit of summer whimsy — Elon Musk’s tweet on Aug. 7 suggesting that, as Tesla’s chief executive officer and its largest shareholder, he was going to take the company private and had the “funding secured” to do so — has turned into a full-blown crisis. There’s the unwanted scrutiny: Thanks to Mr. Musk’s tweet, Tesla is the...
describe the process of protein synthesis in a short paragraph
describe the process of protein synthesis in a short paragraph
Please respond both questions by one paragraph for each. 1. Describe some of the differences between...
Please respond both questions by one paragraph for each. 1. Describe some of the differences between tariffs and quotas? 2. What are the intent and impact of domestic content requirements?
1. In a short paragraph, describe in broad strokes the process by which the radio takes...
1. In a short paragraph, describe in broad strokes the process by which the radio takes radio waves and converts them to sound. 2. AM radio generally operates at frequencies between 0.5 and 2 MHz. If the antenna has to be a quarter of the wavelength of the radio waves, what antenna length would you expect for the radio? How about a cell phone, which broadcasts at 1 GHz?
In one paragraph, please briefly explain why cloud customer should use AWS KMS.
In one paragraph, please briefly explain why cloud customer should use AWS KMS.
BUSINESS LAW Short Answer essay: 1. List and describe the Nonfreehold Tenancies. 2. Please list and...
BUSINESS LAW Short Answer essay: 1. List and describe the Nonfreehold Tenancies. 2. Please list and describe how leases are typically terminated or come to an end. 3. A “Tenancy at Will” is terminated by “Operation of law” if what five(5) events occur?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT