Abaca interview question

Basic SQL, PLSQL AND JAVASCRIPT