a1 and a2 have same structure, but a1 has more records than a2. so, in order to find out how many records are missing in a2 the below query works. but is there a way to write the below query using joins.
Select * from a1 where stoptime not in (select stoptime from a2)