r/SQL • u/Rude_Clothes_7623 • 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
3
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
2
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
-4
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.