【发布时间】:2012-09-09 22:15:19
【问题描述】:
insert into tableA (column1)
select min(tableC.column1)
from tableB
inner join tableC on (tableC.coumn2 = tableB.column1
and tableB.column2 = tableA.column2)
group by tableA.column2
如何根据tableB.column2 = tableA.column2 标准将上述内容更改为使用 group by 进行更新,而不是使用 group by 插入?
请注意,我使用的是SQL SERVER 2008.
【问题讨论】:
标签: sql sql-server-2008 group-by sql-update