Sql statement hilfe benötigt
-
Hallo zusammen,
da ich in i-doit nicht die passende auswertung habe
würde ich gerne direkt aus der Datenbank eine abfrage ausführen
mit folgenden InfosBuchhaltung inventurnummer
Buchaltung Preis
welche Gerät ( egal ob Server Client Router etc etc ) also im weitesten alles was eine Inventurnummer hatmeine Frage kann mir ggf jemand helfen in welche Tabellen / Spalten ich diese Info finden und ggf wie diese Verknüpft sind
vielen Dank schonmal vorrab
-
Hallo Hermann,
dabei handelt es sich um die Tabellen "isys_obj" und "isys_catg_accounting_list". Die Einträge in der Buchhaltung (accounting) sind über den Fremdschlüssel "isys_catg_accounting_list__isys_obj__id" mit den Objekten (isys_obj) verbunden:
SELECT * FROM isys_obj INNER JOIN isys_catg_accounting_list ON isys_catg_accounting_list__isys_obj__id = isys_obj__id WHERE isys_obj__status = 2 AND isys_catg_accounting_list__inventory_no != ''; ```(Status 2 steht für den Status "Normal") Viele Grüße Leo -
Übrigens: Der i-doit Abfrage Editor (Extras > Reports > Abfrage Editor) sollte für diese Zwecke genau richtig sein um solche SQL Statements automatisch zu erstellen! Dazu ist keine Kenntnis der Datenbankstruktur erforderlich.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login