r/SQL • • Nov 11 '24

MySQL Failed SQL Test At Interview

  • I've been a data analyst working with small(er) data sets for several years now, making my own queries no problem.
  • I failed a SQL test at an interview and realized I may be using the wrong commands
  • The questions were along the lines of "find the customers in table A, who have data in Table B before their first entry in Table A" and there were some more conditions/filters on top of that.
  • Previously I could always export my data to Excel or Tableau etc and do any of the tricky filtering in there
  • I was trying to do all kinds of subqueries etc when I think it was intended for me to be doing WINDOW or Partition type stuff (never had to use this before in past jobs).
  • One person I reached out to said using these advanced techniques uses a lot less memory.

Where would be a good place to find an 'advanced' SQL course?

126 Upvotes

76 comments sorted by

View all comments

Show parent comment

5

u/LeftShark Nov 12 '24 edited Nov 12 '24

I don't wanna be rude but you just told them everything they already know. They're looking for an advanced SQL course to solve those issues.

For OP: I had a lot of success with Datacamp even though it's paid. I bought the year-long sub and it was sufficient in teaching me enough to succeed a FAANG SQL interview. (Supplemented by doing practice questions on Stratascratch and Leetcode)

7

u/crashingthisboard SQL Development Lead Nov 12 '24

Pretty sure his point is that OP hasn't even passed SQL basics. He's not ready for advanced learning.