r/AskProgramming • • Jun 13 '26

Databases I need help with SQL

(For context I'm a digital development trainee first year , preparing for this subject exam called manipulating databases)

I'm just completely and utterly frustrated with this language , so the most used command in SQL is SELECT right ? DDL DML that's just 20% of the whole thing , grabbing data from the database and knowing how to structure those queries and understanding the schema is what counts more, cause I have no problem creating tables, adding a new colum populating the tables... Etc but even a baby can learn that crap in a day , what Im struggling with is grabbing data and understanding the relationships between the tables , do you guys have any valuable advice that could help make it click ? Or perhaps some exercises that start from beginner all the way to advanced level select queries with detailed explanations , and thank you very much !!!!

5 Upvotes

26 comments sorted by

View all comments

Show parent comment

1

u/tasstoss Jun 13 '26

The problem is like I said with retrieving specific data , i struggle ALOT with inner join , sub queries... Etc and I don't have a lot of time at most two or three days until the final exam , and I also have an exam next week on php , the subject is actually called dynamic websites , so if I don't resolve this issue with databases and retrieving data it'll also affect me on that exam as well

1

u/elephant_ua Jun 13 '26

How do you struggle with inner join? Idk, SQL is declarative - it does what you ask it to . What can be hard about join? 

You can try SQL at ledtcode.

1

u/tasstoss Jun 13 '26

Well for now it seems hard but having like 5 tables with a bunch of different keys linking to each other and the question asking you to pull this specific data , the figuring out how to write the query is hard , the teacher himself who worked with this stuff idk how many times before in one of his classes had us doing something else cause he got stuck on one of those questions and was working on figuring it out for like 40 mins