标签: sql-server tsql stored-procedures sql-server-2012 sql-server-2008-r2
以下查询给出错误:组附近的语法不正确。
请帮助
UPDATE patient SET CreationDateTime = MIN(doc.creationdatetime) FROM Patient patient INNER JOIN Document doc ON patient.patientid = doc.patientid GROUP BY patient.patientid