I have this SQL query to select all the duplicated customers who have no orders :
select distinct * from [KUNDEN] k1
where not exists (
select * from [BELEG] b
where k1.Nummer = b.Adressnummer)
and exists (
select * from [KUNDEN] k2
where k1.Nummer <> k2.Nummer
and k1.Name = k2.Name
and k1.Vorname = k2.Vorname)
How can I change this query in order to delete these customers ?
Thanks for your help