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.

MySQL JOIN-Problem

Empfohlene Antworten

Hallo!

Habe folgendes Problem:

Tabelle1:

ID

MELDUNG

BEARBEITER => Inhalt: ID.Tabelle2

Taballe2:

ID

NACHNAME

VORNAME

AMT

Ich möchte nun mit einer SQL-Abfrage nur Meldungen ausgeben, bei denen das AMT z.B. 6.10 ist.

Hoffe das ist verständlich formuliert...

Kann mir da einer helfen?

Gruß

Adam

SELECT tabelle1.Meldung FROM tabelle1 INNER JOIN tabelle2 ON tabelle1.Bearbeiter=tabelle2.ID WHERE tabelle2.AMT LIKE "6.10";

ich bin in letzter Zeit ein bissel Access-verseucht.,... , also geb ich darauf mal keine Garantie.

Gruß,

Tim

hi, dank dir schon mal für den ersten Tipp.... aber wie es nun mal so ist ;)

$result = mysql_query("SELECT mitarbeiter,stoerung,meldung FROM meldungen INNER JOIN mitarbeiter ON meldungen.mitarbeiter = mitarbeiter.id WHERE mitarbeiter.amt = '$amt'");[php] 

$amt = z.B. 6.10

Tabelle "meldungen":

mitarbeiter

stoerung

meldung

Tabelle "mitarbeiter":

id

amt -> ("6.10")

habs geregelt bekommen!!

DANKE =)

was gefehlt hat waren nach dem SELECT die tabellennamen (sprich, tabelle1.spalte)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.