Amdocs interview question

SQL commands and problem using them