Phenom interview question

Basics on SQL and Java