Excellon Software interview question

Basic oops and SQL