You are viewing a single comment's thread. Return to all comments →
SQL Server:
with cte as (select id,age,coins_needed, power, row_number() over(partition by age,power order by coins_needed) as t from wands w join wands_property wp on w.code=wp.code and is_evil=0) select id,age,coins_needed,power from cte where t=1 order by power desc,age desc;
Seems like cookies are disabled on this browser, please enable them to open this website
Ollivander's Inventory
You are viewing a single comment's thread. Return to all comments →
SQL Server: