Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Sql statement hilfe benötigt

    Scheduled Pinned Locked Moved Betrieb
    3 Posts 2 Posters 1.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Hermann
      last edited by

      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 Infos

      Buchhaltung inventurnummer
      Buchaltung Preis
      welche Gerät ( egal ob Server Client Router etc etc ) also im weitesten alles was eine Inventurnummer hat

      meine 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

      1 Reply Last reply Reply Quote 0
      • LFischerL Offline
        LFischer
        last edited by

        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
        1 Reply Last reply Reply Quote 0
        • LFischerL Offline
          LFischer
          last edited by

          Ü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.

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post