$sql1 = "select distinct date, count(id) from windows where start_date between '2017-01-01' and '2017-10-31' and (start_date!='0000-00-00') group by date";
$sql2 = "select distinct date, count(id) from AIX where start_date between '2017-01-01' and '2017-10-31' and (start_date!='0000-00-00') group by date";
I have these two queries which return output in the form of (date,ID). What i want is to merge these two tables so that i get result in one array as (date,ID1,ID2) where ID1 is of 'windows' table and ID2 is of 'AIX' table and according to date they must print the ID's. I tried using "join" but that didn't work. I used array_merge() in php to combine the results to one json array but that didn't work either. Is there a way to solve this problem?