I am having a problem with this query, it is giving me the wrong results.
INSERT INTO tmp_TimeInPhase
(PRON, [TimeStamp], [Current Proc Point], ProcPointStartDate, EndDate, TimeInProc, [Updated By], PALT)
SELECT
p.PRON,
a.TimeStamp,
c.[Current Proc Point]...