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 geht nicht

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe 2 tabellen.

in tabelle x stehen die ganzen daten. In einen Feld steht eine nummer welche mit tabelle y verknoüft ist. über diese nummer möchte ich jetzt den namen aus tabelle y auslesen. Was auch eingeldich klappt. Nur wenn ich jetzt group by mache dann bekomme ich folgende meldung:

ORA-00979: kein GROUP BY-Ausdruck

Hier mein sql string:

Select y.GUETE_VARIANTE, x.GUETE FROM DATA.B_DATENSAETZE x, DATA.B_GUETE_VARIANT y WHERE x.GUETE = y.NUMMER and x.BERICHTSNAME ='" + bericht + "' and x.ZEITRAUM ='" + zeitraum + "' and x.DATUM ='" + datum + "' GROUP BY x.GUETE

du musst alle Felder die im SELECT auftauchen gruppieren oder eine Gruppierungsfunktion darauf anwenden.

z.B.

SELECT a, b FROM [...] GROUP BY a, b

SELECT min(a), b FROM [...] GROUP BY b

Duplikate könntest du auch mit SELECT DISTINCT (und ohne GROUP BY) eliminieren

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.