Amdocs interview question

Basic sql queries