TD Interview Question

About SQL, derivatives