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.

Prüfungsaufgabe ohne Lösung

Empfohlene Antworten

Veröffentlicht

Hab ne SQL Prüfungsaufgabe ohne Lösung und ka ob das was ich mir ausgedacht habe richtig ist, wär nett wenn das jemand "korrigieren" könnte :hells:

Select Datum, Flug.FlugID, Datum, FensterMitteGang, count(Sitze.FlugID) as FreiePlätze

from Flug inner join Sitze on Flug.FlugID = Sitze.FlugID

where Datum = '07.12.2006' and Flug.FlugID = ET400

post-47581-14430447882455_thumb.jpg

Hab ne SQL Prüfungsaufgabe ohne Lösung und ka ob das was ich mir ausgedacht habe richtig ist, wär nett wenn das jemand "korrigieren" könnte :hells:

Select Datum, Flug.FlugID, Datum, FensterMitteGang, count(Sitze.FlugID) as FreiePlätze

from Flug inner join Sitze on Flug.FlugID = Sitze.FlugID

where Datum = '07.12.2006' and Flug.FlugID = ET400

Dein Anhang ist leider noch nicht freigeschaltet...

Soweit ich weiß benötigst du beim Count noch ein Group by, wenn du weitere Daten aus der Tabelle holen willst...

SQL GROUP BY

Weiterhin würde ich sagen, dass "ET400" in Hochkommata muss und vor FensterMitteGang noch Flug muss...

Generell (ist aber nit prüfungsrelevant) würde ich dir empfehlen, alle SQL Befehle groß zuschreiben, da das die Übersichtlichkeit doch stark erhöht:

SELECT Tabelle_1.Spalte_1, Tabelle_1.Spalte_2, Tabelle_2.Spalte_3

FROM Tabelle_1

INNER JOIN Tabelle_2 ON Tabelle_2.ID = Tabelle_1.FK_ID

WHERE Bedingung = 'xyz'

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.