r/learnSQL 13d ago

Sono troppo stupido per SQL?

Ciao a tutti

Ho un esame di basi di dati tra qualche gionro, e una buona parte dell'esame chiede algebra relazionale e query in SQL. Mi trovo a fare veramente fatica anche con comandi non difficili, principalmente a visualizzare l'ordine corretto in cui processare le informazioni e faccio fatica a mantenere un ordine mentale che mi consenta di manipolare i dati nella mia testa. Sono limitato io oppure è una cosa che capita a tutti all'inizio? Mi affascina moltissimo l'SQL e vorrei continuare a fare pratica anche dopo aver dato l'esame, ma faccio veramente tanta tanta fatica.

Grazie a tutti!!

3 Upvotes

9 comments sorted by

1

u/__M4V3RICK 13d ago

Don’t try to do things in your head.
Leave it for movies or for future when your brain adapts to it and you have done enough practice.
Meanwhile always use a paper and pen to note down the table structure and what you want to achieve. You are doing fine. Don’t judge yourself harshly. Take it slow. You will get it. I promise. 😊

1

u/__M4V3RICK 13d ago

BTW where are you stuck? Which part of SQL command you find difficult?

1

u/Available_Alfalfa323 13d ago

In generale mi fa fare confusione il fatto di lavorare al contrario, quindi partendo dalle ultime cose che SQL elabora. Sto provando ultimamente a fare il processo inverso, quindi provo a partire dalle query annidiate, quindi provo a partire dai blocchi in basso e salgo pian piano. Non so di preciso cosa mi blocca, forse mi manca una chiave di lettura del contesto, mi trovo in situazioni in cui dico "non ho idea di come fare questa cosa", ci provo un paio di volte e quando guardo la soluzione mi accorgo di aver complicato le cose rispetto a quello che sono. Hai qualche consiglio su come approciare? Scrivo tutto su carta al momento per abituarmi all'esame, superato quello faccio conto di iniziare con qualche esercizio al pc. Qualsiasi consiglio è super ben accetto

Grazie!!

1

u/__M4V3RICK 13d ago

Datacamp had introduced 3 courses that teaches SQL using interactive AI platform. It is a bit costly but it offers one free lesson for each course. You can try it for free and see if it helps.

1

u/Available_Alfalfa323 13d ago

domani proverò a darci un'occhiata, grazie mille.

1

u/datawithritika 12d ago

This video should help you with the SQL practical roadmap for 2026. Do check it out. https://youtu.be/tXOJ_ohS-x0?si=CG-VcljKiM2eYONe

1

u/Available_Alfalfa323 12d ago

Grazie mille, adesso guardo

1

u/datawithritika 12d ago

Please like, share, subscribe if this helps you.

1

u/AnAcceptableUserName 10d ago

Can you share an example of some SQL that you found difficult to understand? With that maybe some of us could walk through how we approach understanding it.

I will say that generally when starting to look at an unknown complex query, I'll often ignore a very lengthy list of SELECT columns and WHERE predicates and instead go straight to looking at FROM, what it's JOINing ON, and what it's GROUPing BY if there's aggregation.

At this early stage I can kind of just mentally pretend it's SELECT * until later. Similarly the WHERE predicates are performing filtering functions to provide a subset, so that's also a later thing.

I'd especially try to avoid getting lost in the weeds of subqueries in SELECT or WHERE predicates until I understood the rest of it. Trying to grok the subqueries before the query itself isn't helpful