Frosty Friday’s super academy wants to know who their best and worst super heroes are, and the only metric that matters is villains defeated. Using MIN_BY and MAX_BY, tell us which super hero is the best, and which is the worst.
Start-Up Code
create or replace table w31(id int, hero_name string, villains_defeated number);
insert into w31 values
(1, 'Pigman', 5),
(2, 'The OX', 10),
(3, 'Zaranine', 4),
(4, 'Frostus', 8),
(5, 'Fridayus', 1),
(6, 'SheFrost', 13),
(7, 'Dezzin', 2.3),
(8, 'Orn', 7),
(9, 'Killder', 6),
(10, 'PolarBeast', 11)
;
Your end result should look something like this:
Remember, if you want to participate:
- Sign up as a member of Frosty Friday. You can do this by clicking on the sidebar, and then going to ‘REGISTER‘
- Post your code to GitHub and make it publicly available (Check out our guide if you don’t know how to here)
- Post the URL in the comments of the challenge
9 responses to “Week 31 – Basic”
-
Thanks for using this platform to promote new functionality!
- Solution URL – https://github.com/ChrisHastieIW/Frosty-Friday
-
Here’s my solution
- Solution URL – https://github.com/apd-jlaird/frosty-friday/tree/main/week_31
-
Neat! Useful new functions
- Solution URL – https://github.com/dsmdavid/frostyfridays-sf/blob/main/models/challenge_31.sql
-
Pretty easy one this time.
- Solution URL – https://github.com/zlzlzl2-data/FrostyFriday/blob/main/FF31_LZ.sql
-
Indeed, a very simple one.. but handy functions!
- Solution URL – https://github.com/Atzmonky/snowflake/blob/main/ffch31_min_max.sql
-
Nice!
- Solution URL – https://github.com/arjansnowflake/Frosty_Friday/blob/main/Week_31/week_31.sql
-
handy that
- Solution URL – https://github.com/NMangera/frosty_friday/blob/main/week%2031%20-%20basic%20/MIN_BY%20%26%20MAX_BY
-
This is my version of the solution for this task. I hope you find it helpful! ^^
- Solution URL – https://github.com/GerganaAK/FrostyFridays/blob/main/Week%2031%20%E2%80%93%20Basic
Leave a Reply
You must be logged in to post a comment.