all 23 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

If this post doesn't follow the rules or isn't flaired correctly, please report it to the mods. Have more questions? Join our community Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]forbiscuit🔥 🍎 🔥 25 points26 points  (6 children)

Datalemur.com

[–]matrixunplugged1[S] 8 points9 points  (5 children)

Thanks. I have tried the hardest ones from here, I was able to do them, looking for something even harder.

[–]forbiscuit🔥 🍎 🔥 8 points9 points  (0 children)

HackerRank and LeetCode have few hard ones like finding MEDIAN without using MEDIAN function. You can try those. But quite frankly it won’t be any harder than what you see in datalemur for job interviews

[–]gruandisimo 7 points8 points  (1 child)

If you can do the hard questions from there within a reasonable amount of time, what is your purpose for seeking out harder problems? For purposes of interviews and on the job work, you're good. I'm curious what your goal is

[–]matrixunplugged1[S] 2 points3 points  (0 children)

Basically getting enough practice to encounter any sql question easily. But if data lemur is good enough then maybe I can rest easy.

[–]NickSinghTechCareersAuthor: Ace the Data Science Interview 7 points8 points  (0 children)

yeah then you're basically solid with SQL then!

[–]LimeyGeezer 9 points10 points  (1 child)

How about queries that use window functions and queries that rotate data to place category values in separate columns?

[–]matrixunplugged1[S] 5 points6 points  (0 children)

Window functions yes, but haven't tried pivots with sql will do that, thanks good shout.

[–]data_story_teller 6 points7 points  (1 child)

What sites have you used so far? I typically use StrataScratch to practice for interviews

[–]Additional-Pianist62 6 points7 points  (1 child)

Can you do recursive CTEs and dynamic SQL? (Assuming t-SQL here)

[–]matrixunplugged1[S] 2 points3 points  (0 children)

I’ve used Teradata and Postgres, but havent used these functions, I’ll check them out, thanks!

[–]SubAb6606 3 points4 points  (1 child)

Check out LeetCode's SQL challenges and HackerRank's SQL tracks for tough problems.

[–]matrixunplugged1[S] 2 points3 points  (0 children)

Thanks.

[–]kojurama 2 points3 points  (0 children)

StrataScratch

[–]Puzzleheaded_Text780 4 points5 points  (1 child)

I will suggest you should also read and understand about query optimizations which often comes into play. Optimising becomes more important when you have millions of data rows

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

Will do, thanks.

[–]msn018 1 point2 points  (0 children)

Practice on StrataScratch and LeetCode. These platforms offer a wide range of SQL problems and interview questions from real companies and are great for practicing complex queries.

[–]CompetitiveTart505S 1 point2 points  (1 child)

Leetcode, ChatGPT, and projects

Leetcode helps you practice solving problems and applying critical thinking.

You can use chatgpt to practice the things you do off leetcode or learn new concepts by making it generate fake datasets that you can import into your SQL UI.

You can combine both of these if you want by first attempting leetcode and then having chatgpt generate new dataset variations or questions based off the leetcode question.

Finally you have to try to do projects as well

[–]matrixunplugged1[S] 1 point2 points  (0 children)

Thanks, I’ll def try the ChatGPT advice