Tales Marinho
Sep 7, 2018 · 1 min read

Congratulations from your post. As We can see, We can't stop study.

I did this challenge in CodeSignal before that found this post hehe, I've felt like you, this should not be difficult.

My first thought was to do it using this limit approach. However i wanted to do in other way. I don't know if it is less performatic ( might be cause I use two selects queriess)

my solution is following:

SELECT MIN(name) name FROM Products WHERE quantity*price =
(SELECT MAX(quantity*price) FROM Products);