Amdocs interview question

SQL queries and Unix command