我正在尝试将两个更新查询组合成一个 sql 语句。我以为我可以使用联合查询来组合查询,但我做不到。有什么建议吗?我要组合的查询如下:
UPDATE PromotionDatabase
SET PromotionDatabase.PromotionWeekEndingSunday = [PromotionDatabase]![Start Date]+-(Weekday([PromotionDatabase]![Start Date])-1)+7
UPDATE PromotionDatabase
SET PromotionDatabase.PromotionEndingWeekEndingSunday = [PromotionDatabase]![End Date]+-(Weekday([PromotionDatabase]![End Date])-1)+7;