Question: Hello, I need help that involves creating data for the tables implementing in Milestone 2 , then writing the SQL queries that use that data
Hello, I need help that involves creating data for the tables implementing in Milestone then writing the SQL queries that use that data to create reports for users.
Add records to each table sufficient to demonstrate your reports.
Write the SQL queryies needed to allow the user to generate a report that shows the progress on a project similar to
Write the queries to allow users to generate two other reports needed by GCS management. Each of these reports should use at least three of the tables in your database. points
Milestone Report The milestone report in MS Word consisting of:
A description of the data entered into the tables and why it is adequate for demonstrating the sufficiency of the design through the reports selected. Note: be sure to indicate the numbers of rows in related tables.The SQL query for the report in Table Pc and a screenshot or other evidence of the data returned from the query using the DBMSDescribe two reports that users will need in this situation, these reports must use at least three tables from your database. For each report show the SQL query that provides the data for the report and a screenshot or other evidence of the data returned from the query using the DBMS
what I have thus far:
SELECT
pProjectID,
pProjectName,
COUNTtTaskID AS TotalTasks,
SUMCASE WHEN tTaskStatus 'Completed' THEN ELSE END AS CompletedTasks,
SUMtHoursLogged AS TotalHours,
COUNTDISTINCT eEmployeeID AS EmployeesInvolved
FROM
Project p
JOIN
Task t ON pProjectID tProjectID
JOIN
Employee e ON tAssignedEmployeeID eEmployeeID
GROUP BY
pProjectID, pProjectName
ORDER BY
pProjectID;
SELECT
eEmployeeID,
eEmployeeName,
tTaskID,
tTaskDescription,
tlHoursLogged,
tTaskStatus
FROM
Employee e
JOIN
Task t ON eEmployeeID tAssignedEmployeeID
JOIN
TimeLog tl ON tTaskID tlTaskID
WHERE
tTaskStatus IN In Progress', 'Completed'
ORDER BY
eEmployeeID, tTaskID;
SELECT
pProjectID,
pProjectName,
dDepartmentName,
SUMtlHoursLogged AS TotalHours,
pBudget SUMtlHoursLogged dHourlyRate AS BudgetRemaining
FROM
Project p
JOIN
Task t ON pProjectID tProjectID
JOIN
Employee e ON tAssignedEmployeeID eEmployeeID
JOIN
Department d ON eDepartmentID dDepartmentID
JOIN
TimeLog tl ON tTaskID tlTaskID
GROUP BY
pProjectID, pProjectName, dDepartmentName, pBudget
ORDER BY
pProjectID, dDepartmentName;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
