0

我正在尝试编写一个查询,该查询将对update_winnerlist已经 GROUPed BY的视图执行以下操作item_index

SELECT email_id
(SELECT email_id, MIN(bid_amount)
   FROM update_winnerslist AS a1
  WHERE a1.item_index = 10 )

我需要在单个查询中执行上述操作,因为我在触发器中使用它来更新表。

4

1 回答 1

0
select top 1 email_id from update_winnerslist
 where item_index = 10 order by bid_amount desc
于 2012-04-26T02:16:30.220 回答