Directi interview question

Various SQL Queries