/// <summary> /// Removes the given kunde /// </summary> public void FjernKunde() { SQLAPI.Delete("Transaktion WHERE KontoNr = ANY (SELECT Transaktion.KontoNr FROM Transaktion, Konto " + "WHERE Transaktion.KontoNr = Konto.KontoNr AND Konto.KundeNr = " + kundeNr + ");"); SQLAPI.Delete("Konto WHERE KundeNr = " + kundeNr); SQLAPI.Delete("Kunde WHERE KundeNr = " + kundeNr); }
/// <summary> /// Removes the given konto /// </summary> public void FjernKonto() { SQLAPI.Delete("Transaktion WHERE KontoNr = " + kontoNr); SQLAPI.Delete("Konto WHERE KontoNr = " + kontoNr); }