Amdocs interview question

Mostly on Unix and sql.