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.

Empfohlene Antworten

Veröffentlicht

Hallo allerseits,

ich muss eine Datenbankabfrage machen, die alle Artikel anzeigt, deren Lagerbestand unter dem Meldebestand ist. Soweit so gut, alles klappt wunderbar, wenn da nicht ein kleines Problem wäre. Wenn bei einem Artikel der Lagerbestand leer ist, also gar nichts drinne steht, wird er nicht angezeigt.

Das heißt wenn der Lagerbestand = NULL oder Leer und der Meldebestand = 50, dann wird er nicht angezeigt.

Kann mir jemand bei der Sache behilflich sein?

Das sind zwei Tabellen und ich habe eine Abfrage mit join gemacht.

Bearbeitet von chablife

Ja das ist immer Nett mit null werten^^

Wenn du auf null abfragst musst du auf IS NULL abfragen, bsp.:

SELECT istnull FROM test WHERE istnull IS NULL

Lg

Bearbeitet von Termi

Ich tippe mal darauf das es sich um ein NUMBER Feld handelt oder ist es ein VARCHAR Feld?

Benutzt du PL/SQL oder einfach einen SELECT und kannst du uns mal zeigen wie du den Wert abfragst ? Also einen Beispielselect posten ?

  • Autor
Hi,

hast du denn Join, mit INNER JOIN gemacht?

Wenn ja dann versuch es mal mit LEFT OUTER JOIN, dann werden dir auch NULL oder leere Werte angezeit.

Sorry antworte sehr spät, danke für die Antworten.

Es hat mit dem Left Join geklappt. Die Funktion kannte ich noch nicht.

Zu Stefan87, es sind 2 Number Felder.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.