select (a.mydata-b.mydata)as aa from a,b where a.datatime=b.datatime order by a.datatime