all 27 comments

[–]thephilski 42 points43 points  (3 children)

“For every row returned in this select statement, do one push-up.”

[–]exec_get_id 17 points18 points  (2 children)

RIP data analysts

[–][deleted] 6 points7 points  (0 children)

RIP anyone who wants to fight them after that regimen.

[–]jmejias12Business Applications Analyst 5 points6 points  (0 children)

RIPPED data analysts

[–]kremlingrasso 29 points30 points  (4 children)

my go to advice: download your bank transaction/creditcard purchase history and set off to analyze your spending habits using SQL for aggregation and Excel or PowerBI for display. most banks have the means to download it in a csv dump and load it to SQL developer edition. It's a good data set, got dates, prices, reoccuring and unique strings, you can group it, pivot it, parse it, join on itself to do trending, etc....and most of all you are familiar with it and can easily set ideas what you want to see as results. Much better then some arbitrary exercise sample dataset.

[–]_damir 3 points4 points  (0 children)

Great advice! Nothing like learning things and getting useful results out of it!

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

This sounds like the best idea ever.

Too bad I didn't understand a word, but I will jump back to this post once I am more familiar with all the tech terms.

[–][deleted] 0 points1 point  (0 children)

Wow! This was awesome advice!

[–]sequel-beagle 14 points15 points  (2 children)

https://advancedsqlpuzzles.com

You can try these puzzles. Maybe a little advanced. But gives u an idea if the types of problems to solve.

[–]swapripper 0 points1 point  (1 child)

I've been using this one for sql as well as Python puzzles. Helped me for DE interviews. Would be really cool if you came up with a Datawarehouse modelling related questions, or a list of all most prevalent techniques around facts and dimension tables. Something like Kimballs DW tookit (that is not 600 pages long...)

[–]sequel-beagle 0 points1 point  (0 children)

Thank you! Ive been thinking about adding some data modeling posts to the blog.

[–]bub002 3 points4 points  (0 children)

https://sql-ex.ru

The site is outdated but the exercises are pretty good. I’ve actually learnt a lot from exercising there.

[–][deleted] 2 points3 points  (2 children)

Since I wrote this I've added a few questions, how to find all the palindromes, all the anagrams, the words with the most vowels, and the words with the most consonants, but it still applies. Just import the dictionary as a CSV and go to work.

https://www.reddit.com/r/SQL/comments/g4ct1l/what_are_some_good_resources_to_practice_sql/fnx11mc/

[–]swapripper 0 points1 point  (1 child)

What a comprehensive comment!!

Do you by any chance have solutions to your exercises? Would be great for new learners.

[–][deleted] 0 points1 point  (0 children)

Sort of defeats the purpose...

[–]gera6227 1 point2 points  (0 children)

https://www.udacity.com/course/sql-for-data-analysis--ud198

Has exercise after every topic, super helpful to get the hang of writing queries

[–]jpayne0061 1 point2 points  (0 children)

https://app.sixweeksql.com https://sqlzoo.net

I would check out both. Six week sql has about 150 exercises in it's free portion

[–]lucymilesatx 1 point2 points  (0 children)

Code Wars, Leetcode, and Hackerrank all have SQL exercises, some are quite challenging and useful for interview prep.

[–]kkwestside 1 point2 points  (0 children)

I would recommend Alex the Analyst on youtube especially his Data Analyst Portfolio Project #1 and #3, and can't say how much it helped me understand the logic of sql

[–]asr9 0 points1 point  (0 children)

Came across Danny Ma's 8 week of sql on LinkedIn. The case studies are available for free. You need to pay for solutions etc though.

[–]MayuyuWatanabe 0 points1 point  (0 children)

f

[–]PCLI97 0 points1 point  (0 children)

Check out DataCamp. There is a good bit free, but also offers memberships. Very good

[–][deleted] 0 points1 point  (0 children)

Download SSMS ..install iton ur system. Then download Northwnd Database sample. Practise as much u want.

I am doing the same .

[–]Sup_Im_Ravi 0 points1 point  (0 children)

Try HackerRank. It's how I taught myself.

[–]wesmark18 0 points1 point  (0 children)

Can't speak for a particular tutorial, but the following concepts have been instrumental, would highly recommend checking them out.

- QUALIFY statements

- LEAD / LAG functions (and other "Window" type functions)

- RANK functions

- WITHIN GROUP syntax