Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Group by / Sum Funktionen in ODBC Abfrage (PHP)

Empfohlene Antworten

Veröffentlicht

Moin,

ich hab hier ein ziemlich besch... Problem.


SELECT SB_XX_XXX, SB_XX_AG, SB_XX_DATUM_ZEIT, SB_XXKE, SB_XXKG FROM SUPER_OPERATOR.STB WHERE SB_XX_XXX='BR' AND SB_XX_AGG='BZ' AND SB_XXKE BETWEEN 100 AND 199

Diese Abfrage läuft, und das komplett ohne Probleme. packe ich jedoch hinten noch ein Group by SB_XX_XXX rein, so bekomme ich direkt die Fehlermeldung 37000 -> Syntax Error or Access Violation. Da es ohne Group klappt, denke ich nicht, dass es sich dabei um die Access Violation handelt.

Tja, mein eigentliches Ziel ist es, dass ich nach SB_XX_XXX gruppieren lasse, sowie die Daten des Feldes SB_XXKG summieren lasse...nur, wie ?

Laut Franzis PHP5 Buch, sollte die Group by Fkt so wie beschrieben klappen, nur tut sie das nicht :(

HELP ! ! !

  • Autor

Hat sich erledigt ;)

Ich sollte vll auch die anderen Felder, die nicht gruppiert werden können rausnehmen ;)

Nur ein weiteres Prob. Das Datumsfeld scheint Date/Time zu sein, aber ich bekomme keine Ergebnisse :(

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.