tweaked column names. hope this doesn't bite me

master
dtookey 4 years ago
parent 221ddd411b
commit 01cf9697d2

@ -5,9 +5,9 @@ DROP TABLE IF EXISTS engineer_contributions;
CREATE TABLE engineer_contributions AS
SELECT CONCAT(users.lname, ', ', users.fname) AS `Engineer`,
project_lifecycle.project_number AS `Project Number`,
project_lifecycle.project_number AS `ProjectNumber`,
project_lifecycle.timestamp,
new_value AS `Action Type`,
new_value AS `ActionType`,
CONCAT(SUBSTR(project_lifecycle.project_number, 1, 3), ' - ',
IF(ap.proj_type = 'Warranty', 'Structural', ap.proj_type)) AS `Region`,
clients.name AS `Client`,
@ -45,10 +45,10 @@ DROP TABLE IF EXISTS rdu_soil_contributions;
CREATE TABLE rdu_soil_contributions AS
SELECT CONCAT(users.email) AS `Technician Email`,
project_lifecycle.project_number AS `Project Number`,
SELECT CONCAT(users.email) AS `Technician`,
project_lifecycle.project_number AS `ProjectNumber`,
project_lifecycle.timestamp,
new_value AS `Action Type`,
new_value AS `ActionType`,
'RDU - Soil' AS `Region`,
clients.name AS `Client`,
ap.description AS `Description`

Loading…
Cancel
Save