insert if not exist (select * from A group by date,line where date="" and line="" having count(*) < 30)