engineering contributions are in a much better, simpler place.
parent
accade8dff
commit
7be29424a9
@ -0,0 +1,14 @@
|
|||||||
|
DROP TABLE IF EXISTS insight_engineering_contributions;
|
||||||
|
|
||||||
|
CREATE TABLE insight_engineering_contributions AS
|
||||||
|
SELECT email,
|
||||||
|
CONCAT(insight.users.LastName, ', ', insight.users.FirstName) as Engineer,
|
||||||
|
ProjectId,
|
||||||
|
ActualHours,
|
||||||
|
TimeEntryDate,
|
||||||
|
TimeEntryDescription
|
||||||
|
FROM projects.users
|
||||||
|
INNER JOIN insight.users ON projects.users.email = insight.users.EmailAddress
|
||||||
|
INNER JOIN insight.timeentry ON insight.users.Id = insight.timeentry.UserId
|
||||||
|
WHERE projects.users.priv & POW(2, 25) > 0
|
||||||
|
;
|
||||||
@ -1,17 +1,8 @@
|
|||||||
INSERT INTO insight.timeentry (ActualHours,
|
INSERT INTO insight.timeentry (ActualHours,
|
||||||
ActualHoursFormattedString,
|
|
||||||
ActualTimeString,
|
|
||||||
ActualTotal,
|
|
||||||
BillableHours,
|
|
||||||
BillableHoursFormattedString,
|
|
||||||
BillableTimeString,
|
|
||||||
BillableTotal,
|
|
||||||
TimeEntryDate,
|
TimeEntryDate,
|
||||||
TimeEntryDescription,
|
TimeEntryDescription,
|
||||||
ProjectId,
|
ProjectId,
|
||||||
RateBill,
|
|
||||||
RateBurden,
|
|
||||||
TaskId,
|
TaskId,
|
||||||
TimeSheetId,
|
TimeSheetId,
|
||||||
UserId)
|
UserId)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
|
VALUES (?, ?, ?, ?, ?, ?, ?);
|
||||||
Loading…
Reference in New Issue