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

Hi @all,

wie lautet eigentlich die Syntax, wenn man aus einer Tabelle eine Abfrage mit SQL erzeugen möchte, nach den 2 Kriterien: Ort und Anrede

Könnte es vielleicht so aussehen?

SELECT * FROM kunden

WHERE ort = 'München' OR 'Köln' AND anrede = 'Herr'

Vielleicht sollte ich es auch verschachteln?

SELECT * FROM kunden

WHERE ort = (SELECT anrede FROM kunden

WHERE anrede = 'Herr')

Brauch Hilfe!!!!!!

Danke im Voraus.

thx kaffeemacher

Hallo,

Nein Klammern müssen sein! Sonsten würde es Köln mit der Anrede oder München

bedeuten.

2. Möglichkeit wäre

SELECT * FROM kunden

WHERE ort in ('München','Köln')

AND anrede = 'Herr'

jedenfalls in Oracle

Servus

Eva

Ich würde es allgemein mal gut finden, wenn die Leute in den Thread schreiben welche DB sie benutzen, oft fehlt diese garnicht mal unwichtige Information.

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.