Oracle Need sql query to get the output from two table