Hallo Leute,
ich habe folgendes Skript. Mit diesen versuche leider vergebens die Rechnungstabelle in der Produktion zu aktualisieren.Leider blicke ich nicht mehr durch....... weil es zu Fehlermeldungen kommt.
Ich würde mich über jede Anmerkung bzw. Korrekturvorschläge freuen.
create table TabelleKorrektur as
Select Migration.rechnung_summe NEU,Migration.Kunde_nr,Produktion.rechnung_summe ALT
from Mig.Rechnungen Migration, Prod.Rechnungen@Prod Produktion
where Migration.rechnung_art='Einzug'
and Migration.kunde_nr=Produktion.kunde_nr
and Migration.rechnung_nr=Produktion.rechnung_nr
and Migration.auftrag_nr=Produktion.auftrag_nr
and Migration.objekt_nr=Produktion.objekt_nr
and Migration.rechnung_gueltig_ab=Produktion.rechnung_ gueltig_ab
and Migration.rechnung_historie='Aktuell'
and Produktion.rechnung_hhistorie='Aktuell'
and Migration.rechnung_summe!=Produktion.rechnung_summ e
UPDATE Prod.Rechnungen@Prod Produktion SET Produktion.rechnung_summe
= (select korr.rechnung_summe from tblkorrektur korr
where korr.kunde_nr=Produktion.kunde_nr)
where Produktion.kunde_nr in(select kunde_nr from TabelleKorrektur)
ich habe folgendes Skript. Mit diesen versuche leider vergebens die Rechnungstabelle in der Produktion zu aktualisieren.Leider blicke ich nicht mehr durch....... weil es zu Fehlermeldungen kommt.
Ich würde mich über jede Anmerkung bzw. Korrekturvorschläge freuen.
create table TabelleKorrektur as
Select Migration.rechnung_summe NEU,Migration.Kunde_nr,Produktion.rechnung_summe ALT
from Mig.Rechnungen Migration, Prod.Rechnungen@Prod Produktion
where Migration.rechnung_art='Einzug'
and Migration.kunde_nr=Produktion.kunde_nr
and Migration.rechnung_nr=Produktion.rechnung_nr
and Migration.auftrag_nr=Produktion.auftrag_nr
and Migration.objekt_nr=Produktion.objekt_nr
and Migration.rechnung_gueltig_ab=Produktion.rechnung_ gueltig_ab
and Migration.rechnung_historie='Aktuell'
and Produktion.rechnung_hhistorie='Aktuell'
and Migration.rechnung_summe!=Produktion.rechnung_summ e
UPDATE Prod.Rechnungen@Prod Produktion SET Produktion.rechnung_summe
= (select korr.rechnung_summe from tblkorrektur korr
where korr.kunde_nr=Produktion.kunde_nr)
where Produktion.kunde_nr in(select kunde_nr from TabelleKorrektur)
Comment