All - I currently have this query (which works fine):
What I really want though, is to be able to get the MAX(q.[End of Inspection]) because the q.Batch field has multiples of the same batch number with different dates [End of Inspection].
Thanks in advance!
Code:
UPDATE
END_INSPECTION AS e INNER JOIN qa33EndInspection_link AS q ON e.Batch = q.Batch AND e.Material = q.Material
SET e.QI_End_Inspection = q.[End of Inspection] --(I want the MAX() of this!)
WHERE e.Batch = q.Batch AND e.Material = q.Material
What I really want though, is to be able to get the MAX(q.[End of Inspection]) because the q.Batch field has multiples of the same batch number with different dates [End of Inspection].
Thanks in advance!