delete from STOKKARTI WHERE Kodu IN (
SELECT Kodu FROM STOKKARTI WHERE NOT EXISTS (SELECT * FROM STOKHAR WHERE StokKodu=STOKKARTI.Kodu))
DELETE FROM StokFiyat WHERE Kodu IN (
SELECT Kodu FROM STOKKARTI WHERE NOT EXISTS (SELECT * FROM StokFiyat WHERE  Kodu=STOKKARTI.Kodu))

SELECT * FROM STOKHAR WHERE NOT EXISTS (SELECT * FROM STOKKARTI WHERE  Kodu=STOKHAR.StokKodu)
SELECT * FROM StokFiyat WHERE NOT EXISTS (SELECT * FROM STOKKARTI WHERE  Kodu=STOKKARTI.Kodu)
SELECT Kodu FROM STOKKARTI WHERE NOT EXISTS (SELECT * FROM StokFiyat WHERE  Kodu=STOKKARTI.Kodu)
SELECT Kodu FROM STOKKARTI WHERE NOT EXISTS (SELECT * FROM STOKHAR WHERE StokKodu=STOKKARTI.Kodu)