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

hoi

bei einer m zu n- Beziehung in einer relationalen datenbank wird normal eine zwischentabelle angelegt, bei der sich der Primärschlüssel aus den beiden Schlüsseln der verbundenen Tabellen zusammensetzt.

Wenn bei einem Sonderfall, jedoch die Beziehung ein Attribut hat das Primärschlüssel ist, setzt sich dann der Primärschlüssel aus den drei schlüsseln zusammen oder ist nur das eine Attribut Primärschlüssel, und die anderen sind fremdschlüssel??

ich hoffe ihr könnt mir weiterhelfen

danke im voraus

mfg

didii

Bsp. Hotelbuchung:

Entity Gaeste:

- GastID (Primärschlüssel)

- Name

- PLZ

- Wohnort

- ...

Entity Zimmer

- ZimmerNr (Primärschlüssel)

- Preis

- BettenAnz

es besteht eine m zu n beziehung zwischen den beiden entities.

Relationship bucht:

Attribute der Relationship:

- BuchungsNr (Primärschlüssel)

- AnkunftDatum

- AbreiseDatum

ist jetzt in der Zwischentabelle bucht nur BuchungsNr einziger Primärschlüssel und GastID und ZimmerNr sind nur Fremdschlüssel

oder

setzt sich der Schlüssel aus GastID, ZimmerNr und BuchungsNr zusammen???

ich hoffe du verstehst mein Problem jetzt und kannst mir antworten

:confused:

Original geschrieben von Didii

ist jetzt in der Zwischentabelle bucht nur BuchungsNr einziger Primärschlüssel und GastID und ZimmerNr sind nur Fremdschlüssel

Da die Buchungsnummer ja nicht pro Gast-Zimmer Kombination fortlaufend sondern global fortlaufend ist, ja.

Gruß Jaraz

danke für deine antwort

:uli

cu

didii

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.