r/SQL • u/kater543 • Jun 19 '24
Discussion I got rekt in a SQL interview today
Just thought it was hilarious and I wanted to share: I was asked a few very easy SQL questions today during a phone screen and I absolutely bombed two basic ones.
I use SQL every day and have even taught SQL classes, but I never really learned the difference between rank and dense rank because I use neither in dealing with big values(just use row number). I remembered seeing the answer to that question on this very subreddit earlier too, I just didn’t remember it because it was so obscure to me. Curious how y’all have used rank and dense rank.
Also I messed up the default order by direction because my brain apparently no worky and I always type in either “asc” or “desc” out of habit anyway.
SQL trivia shudders
Nightmare for a daily user and sql guy.
1
u/kater543 Jun 19 '24
That’s an interesting perspective. I don’t know it off the top of my head, but if I needed to look up and use it, it wouldn’t be hard at all. You’re saying that I am still building an excuse not to learn it? I don’t see it personally as limiting to be fair, more along the lines of I don’t keep information I don’t use in my head at all times, but I could be wrong. What do you mean that it’s limiting me? Slightly confused by the comment.