From 8cfc26b68b2e3af6db79e2fd89ac81fe226198bd Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 15 Apr 2022 12:03:44 -0400 Subject: [PATCH] added work type descriptions --- src/sql/0-run-first/contributions.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sql/0-run-first/contributions.sql b/src/sql/0-run-first/contributions.sql index 48c82e2..7cfff40 100644 --- a/src/sql/0-run-first/contributions.sql +++ b/src/sql/0-run-first/contributions.sql @@ -2,10 +2,11 @@ CREATE OR REPLACE TABLE engineer_contributions AS SELECT CONCAT(users.lname, ', ', users.fname) AS `Engineer`, project_lifecycle.project_number AS `Project Number`, project_lifecycle.timestamp, - substr(new_value, 2) AS `Project Type`, + substr(new_value, 2) AS `Action Type`, CONCAT(SUBSTR(project_lifecycle.project_number, 1, 3), ' - ', - IF(ap.proj_type = 'Warranty', 'Structural', ap.proj_type)) as `Region`, - clients.name as `Client` + IF(ap.proj_type = 'Warranty', 'Structural', ap.proj_type)) AS `Region`, + clients.name AS `Client`, + all_projects.description AS `Description` FROM users INNER JOIN project_lifecycle ON pkey = modifier INNER JOIN all_projects ap on project_lifecycle.project_number = ap.refnum