Thomson Reuters interview question

Basic questions related to sql, Java