I am trying to get data response using API (AJAX). And the data present in two different tables but having one column common in both the tables. My approach is as follows: