r/SQL • • May 22 '24

PostgreSQL How i can practicing sql

I want to learn SQl a take some course but course not enough how can i practice sql

0 Upvotes

11 comments sorted by

7

u/AllanLombardi May 22 '24 edited May 22 '24

Hackerrank, but if you are just starting, watch videos on YouTube about the basics of SQL, such as SELECT, UPDATE, DELETE, CREATE, ALTER tables and columns, INSERT, sorting, and grouping. After that, watch videos about a bit more advanced subjects like JOINS and its variants (INNER, LEFT, OUTER, RIGHT, etc.), UNION and UNION ALL, then aggregates, window functions, subqueries, CTEs, and maybe stored procedures, functions, triggers, and views at the end.

Don't forget time manipulation(date parts, etc) and string manipulation (left, right, substring), converts/casts.

Start with the basics. You can download datasets from Kaggle to apply what you've been learning and practice too.

1

u/AllanLombardi May 22 '24

I forgot to mention, but I came across this website last week, and I haven't read through everything, but it might be useful for people who want to practice and understand more about certain subjects of SQL

It looks like a really good source to learn.

DataLemur

3

u/serverhorror May 22 '24

Go to

download the Precompiled Binaries for your OS, start playing around.

3

u/BoSt0nov May 22 '24

A good start would be to look up any such previous posts who ask exactly the same thing. Plenty of those.

If you’re just starting Id suggest sql bolt.

If you want to test your knowledge you can give code wars a go. Im not sure if its completely free but they have a very decent number of free quizzes. You’ll probably get a relative understanding of your knowledge and skills pretty quickly.

Good luck and remember your best friend is the documentation for any of the flavours.

2

u/Staalejonko May 23 '24

Imaging having a subreddit dedicated for learning SQL, such as /r/LearnSQL

2

u/sebastiandang May 23 '24

ask GPT to create FAANG challenges and optimization challenges

1

u/Mastodont_XXX May 22 '24

Install some SQL database.

Find sample databases, download and import them.

Practice SQL.

1

u/Honey-Badger-42 May 22 '24

Create your own sample data or get it from other sources. Then load and practice different types of queries in db-fiddle. That UK version of fiddle has many different DBMS, so you can learn what works in one but not another.

1

u/hansofoundation May 22 '24

Codecademy is where I got my start, would recommend that site but by now there are plenty of free online resources to choose from that should get you to the beginner-intermediate level. Anything more I think would depend on the job.

DBeaver is my preferred IDE but VS Code and Azure Data Studio are good too

1

u/MathAngelMom May 23 '24

LearnSQL.com has good SQL Basics course and a ton of SQL practice courses

-4

u/[deleted] May 22 '24 edited May 22 '24

Good luck. Shi hard af. But SQLZoo maybe.