DB2 SQL update correlating with subquery
问题 Code block: update yrb_purchase px set px.club = (select club from (select p.title, p.year, o.club, o.price, ROW_NUMBER() OVER(PARTITION BY p.title, p.year ORDER BY o.price ) rn from yrb_purchase inner join yrb_offer o on p.title = o.title and p.year = o.year inner join yrb_member m on m.club = o.club inner join yrb_customer c on c.cid = p.cid and c.cid = m.cid where p.cid = px.cid and p.title = px.title and p.year = px.year order by title ) where rn = 1 ) where .... My issue is thus: upon