delete from data where uuid in ( select uuid from data group by uuid,raw,recdate having count(*)>1 );