1 / 2

Understanding Primary Keys in Database Management Systems

Learn about the concept of primary keys, identifying attribute combinations, and the importance of unique keys in databases. Explore examples of primary keys in employee data and their significance.

neila
Télécharger la présentation

Understanding Primary Keys in Database Management Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Schlüssel, Schlüsselwerte (2|3) • K A ist „Schlüssel (engl.: key)“ für E : <A><=> • (K1) K ist „identifizierende“ Attributkombination für E : <A>, (d.h. verschiedene Objekte der realen Welt haben auch verschiedene Attributwerte bzgl. K) • (K2) Es gibt keine echte Teilmenge K‘  K, für die Eigenschaft K1 gilt (d.h. K ist minimal mit Eigenschaft (K1)). • Es kann mehrere Schlüssel, d.h. Attribute (Attributkombi- nationen) mit obigen Eigenschaften (K1) und (K2) geben. • Primärschlüssel (primary key): einziger oder fest ausgewählter Schlüssel häufig: E# (E# A)

  2. Schlüssel, Schlüsselwerte (3|3) Angestellte : < Name, AngNr, Ort, Gehalt, GebDatum > AngNr ist SchlüsselName, GebDatum evtl. Schlüssel Üblich ist die Verwendung eines einfachen Schlüsselattributes: AngNr, AbteilungsNr, ArtikelNr, ... anstelle einer mehrstelligen Attributkombination.

More Related