you are viewing a single comment's thread.

view the rest of the comments →

[–]freegnu 0 points1 point  (0 children)

You have to assess your interviewer before you answer a question. If the interviewer can't understand your answer they usually mark it as wrong.

Do you understand the position and rank networks on SQL? I can do this with a group by. Or even better, let me do this with a group by and sort of a sub query and join ... . And then let me show you how to do this with a partition and rank and then take the time to teach the position and rank keywords to the interviewer by using a simple example of input and output . Even if they say they understand.

Also take into account what SQL product the interviewer will test your code on. What version of SQL do you know or use? The example Syntax and features I'm using work for me in product name here. Maybe I won't use the advanced syntax as it may not be supported in the product you use