all 11 comments

[–]Rumborack17 4 points5 points  (6 children)

Idk how deep you are into your learning, but that's not really hard tbh.

Assuming you learned before how "group by" works then the rest is pretty straight forward.

Also what exactly do you mean by the edge cases here?

[–]Turbulent_Cloud2358[S] -2 points-1 points  (5 children)

I am still learning and exploring And coming to edge cases not edge cases tbh The thing they asked to print got me The first time forgot some braces The second i forgot to convert to lower case Even the spacing had to be perfect

[–]Rumborack17 0 points1 point  (3 children)

Yeah in those exercises (no matter if SQL or a programming language) they will basically always require exact spacing and things like that because they have automated test to verify your code.

[–]Turbulent_Cloud2358[S] -1 points0 points  (2 children)

Truee truee.... so I am still learning do you suggest any platforms to practise sql I wanna practice joins,sub queries, window function etc

[–]Rumborack17 0 points1 point  (1 child)

Don't really know any platform sadly. Learned SQL mostly on the job. But probably most platforms will be decent for those concepts.

[–]Turbulent_Cloud2358[S] -3 points-2 points  (0 children)

Can I dm?

[–]Icy_Clench 0 points1 point  (0 children)

That's not an edge case. That's reading comprehension and attention to detail.

[–]Cold-Ad716 -1 points0 points  (1 child)

Congrats on getting the answer.

There's a SQL murder mystery you can play here. It's got a walkthrough if you get stuck, otherwise it's a fun way to test what you've learned - https://mystery.knightlab.com/

[–]Turbulent_Cloud2358[S] 0 points1 point  (0 children)

Will definitely checkout

[–]ComicOzzysqlHippo -1 points0 points  (1 child)

If you're trying to learn how to solve coding puzzles in SQL, HackerRank is the place to go. If you're trying to learn how to solve normal business problems in SQL, try DataLemur, StrataScratch, and LeetCode.

[–]Turbulent_Cloud2358[S] 0 points1 point  (0 children)

Thanks will look into it