We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Why the following code runs in MS SQL SERVER but not in MySQL?
WITH min_coins AS
(
SELECT
ROW_NUMBER () OVER (PARTITION BY code, power ORDER BY code, power) as rownumber,
id,
code,
coins_needed,
power
FROM Wands
)
SELECT * FROM min_coins;
Cookie support is required to access HackerRank
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 →
Why the following code runs in MS SQL SERVER but not in MySQL?
WITH min_coins AS ( SELECT ROW_NUMBER () OVER (PARTITION BY code, power ORDER BY code, power) as rownumber, id, code, coins_needed, power FROM Wands ) SELECT * FROM min_coins;