Ejada interview question

He asked me two intermediate SQL questions