DELETE FROM MYORDER_ORDER e WHERE e.rowid>(select min(x.rowid) from myorder_order x where e.cust_id = x.cust_id)