r/learnSQL • u/sumiitCodes • Oct 08 '26
Day 31 — Finished all Medium JOIN questions (70/100)
Wrapped up the Medium section of my 100-question JOIN lab today. The final batch included:
- Average hours worked per project, joined with project and department names
- Employees working on projects with a budget above 200,000
- Each department along with its most expensive project
- Employees assigned to all projects in their own department. This is the "for all" type of question, and it's the hardest to reason about in SQL
- Every manager with the department(s) their direct reports belong to
- Pairs of projects that share at least one common employee (self-join on
assignments)
The "ALL projects" question and the project-pairs question were the toughest. Both needed me to draw the tables out and trace a few rows by hand before the query logic made sense.
37
Upvotes
8
u/__M4V3RICK Oct 08 '26
Where are you getting these questions? Can you share the link please?
4
u/One_Slice_5379 Oct 08 '26
Interested to do something like this, also. I need more details, please
2
u/__M4V3RICK Oct 08 '26
Bata de Sumit bhai. Kaha se mil rahe h questions. Hum bhi kar lenge thoda bahut.
2
u/Least_Ad_1795 Oct 09 '26
Day 31 is solid progress! The “ALL projects” problem is especially useful to practice because it often requires
NOT EXISTSorGROUP BYwithHAVING. Self-joins become easier once you identify the matching keys and avoid duplicate project pairs. Keep going!2
u/Punchingpanda76 Oct 09 '26
op please answer to the comments
2
u/kind_person_9 Oct 10 '26
What is the source of the learning SQL?
We appreciate if you cannot put source then do not let us know your experience.
And it’s rude not to answer people’s basic questions
1
u/fishwithbrain Oct 08 '26
👍🏽👍🏽 I have been following your sql journey and now I am in day 7,I am old and it is taking me 2 days to finish 1 day worth of studing.
From where do you get the practice questions, is it possible to share. ?
Thanks for the postsc they have helped me.
1
u/Peace_out4 Oct 08 '26
where did you practice
1
u/Bongnazi Oct 08 '26
Can you share the link of the questions bank
1
u/[deleted] Oct 09 '26
[removed] — view removed comment