select max(日期), 机号 from 表2 where 机号 in (select 机号 from 表1) group by 机号
create table 表3 as select 表1.ID,max(创建日期) as 日期,机号,品名 from 表1,表2 where 表1.机号=表2.机号 group by 机号;
哪位大哥,可以帮忙看一下.谢谢