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.
4
u/cybertier Jun 19 '24
The question might also be there just to see how you react. Being honest when you don't know something and not bullshitting can be valued by an interviewer. Going "I can't remember the differences but when I need them I google them" can be a valid answer.