Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个查询,该查询将对update_winnerlist已经 GROUPed BY的视图执行以下操作item_index:
update_winnerlist
item_index
SELECT email_id (SELECT email_id, MIN(bid_amount) FROM update_winnerslist AS a1 WHERE a1.item_index = 10 )
我需要在单个查询中执行上述操作,因为我在触发器中使用它来更新表。
select top 1 email_id from update_winnerslist where item_index = 10 order by bid_amount desc