TD interview question

About SQL, derivatives