distinct
select       distinct *       from       info       m       where       not       exists       (select       1       from       tb       n       where       n.名字=m.名字       and       n.编号       =       m.编号       and       n.注册时间       >       m.注册时间       and       datediff(mi       ,       m.注册时间       ,       n.注册时间)       <       5)