I am trying to write a query that would do the following on the view update_winnerlist which is already GROUPed BY item_index:
SELECT email_id
(SELECT email_id, MIN(bid_amount)
FROM update_winnerslist AS a1
WHERE a1.item_index = 10 )
I need to perform the above in a single query as I am using it in a trigger to update a table.
1 Answer