insert into tongji select tmptab. * from tmptab left outer join tongji on tmptab.cardnum = tongji.cardnum and tmptab.xfdate = tmptab.xfdate and tmptab.xftime = tongji.xftime where tongji.cardnum is not null
It's roughly like this, try it.
The last condition is wrong, amended as follows:
insert into tongji select tmptab. * from tmptab left outer join tongji on tmptab.cardnum = tongji.cardnum and tmptab.xfdate = tmptab.xfdate and tmptab.xftime = tongji.xftime where tongji.cardnum is null