Combine Two Tables Sql Leetcode Questions Java