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.

Script-Fehler?

Empfohlene Antworten

Veröffentlicht

Ich habe den follgende Script:

SELECT G.Name, G.Vorname, G.[E-Mail], G.Homepage, G.Stadt, CO.Land, C.Comment

FROM Gast G, Comment C, Country CO

WHERE Gast INNER JOIN Comment ON G.[Gast-ID] = C.[Gast_ID] AND

Gast INNER JOIN Country ON G.[Land-ID] = CO.[Land-ID];

er sagt mir (unter Access) da würde ein Operator fehlen, finde ich aber nicht welcher?

Soweit ich das sehe hast du deinen JOIN falsch aufgebaut. Im JOIN darf kein AND vorkommen. Meiner Meinung nach müsste das so aussehen:

SELECT ...

FROM ...

WHERE Gast INNER JOIN Comment (INNER JOIN Country ON G.[Land-ID] = CO.[Land-ID]) ON G.[Gast-ID] = C.[Gast_ID]

Probiers mal so, wenn es nicht funktioniert kannst du dich ja nochmal melden...

Hallo,

kleiner Tip, wenn das SQL nicht geht:

Einfach ne neue Abfrage öffnen und das SQL da rein kopieren. Wenn Du auf die Entwurfansicht schaltest und es nicht funktioniert, zeigt die Access ( meistens ) die Stelle, wo das SQL einen Fehler hat. So kannst Du Dein SQL überpüfen und ändern.

Gruss

Hat das jetzt eigentlich so geklappt, wie ich es vorgeschlagen habe???

leider nicht. Ich habe folgendes eingegeben:

SELECT G.Name, G.Vorname, G.[E-Mail], G.Homepage, G.Stadt, G.Land, CO.Comment

FROM Gast G, Comment CO, Country C

WHERE Gast INNER JOIN Comment (INNER JOIN Country ON G.[Land] = C.[Land-ID]) ON G.[Gast-ID] = CO.[Gast_ID];

Er sagt mir:

Syntaxfehler (fehlender Operator)in Abfrage ausdruck: 'Gast INNER JOIN Comment (INNER JOIN Country ON G.[Land] = C.[Land-ID]) ON G.[Gast-ID] = CO.[Gast_ID]';

Die Beziehungen ( join ) stehen meines Wissens nicht in der WHERE - Klausel.

Vielleicht klappts so:

SELECT G.Name, G.Vorname, G.[E-Mail], G.Homepage, G.Stadt, G.Land, CO.Comment

FROM Gast G, Comment CO, Country C

INNER JOIN Comment (INNER JOIN Country ON G.[Land] = C.[Land-ID]) ON G.[Gast-ID] = CO.[Gast_ID]

WHERE FELD = Kriterium

Gruss

beides geht. Wenn sie in der WHERE-Klausel stehen, dann ist es "reines" SQL.

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.