Fra ER-Diagram til Relationel model i 7 step

Relaterede dokumenter
Views etc. Databaser

(fig.1. Eksempel på en almindelig entity)

DOCUMENTATION FULLY DRESSED USE-CASE. 29. oktober 2012 [ TEMA PERSISTENS DOKUMENTATION] Use-case: Process Order

Øvelse 9. Klasser, objekter og sql-tabeller insert code here

Søren Løbner (lobner) ddb Databaser

Database. lv/

Databaser. Område / Specialefag nr Database, design og programmering Datatekniker Infra & Prog IT-Supporter AMU Kursister

Data lagring. 2. iteration (implement backend)

Projekt 1 Database. Cphbusiness Lyngby Multimediedesigner, 3. semester mul-a12e, gruppe 1

Begrænsninger i SQL. Databaser, efterår Troels Andreasen

Modul 2 Database projekt Multimediedesign 3. semester Gruppe 3 IRF/TUJE

Jayne Alice Jensen [Link til portfolio]

Databaser Obligatorisk opgave 1

Datamodeller. 1. Elementerne. Vi betragter E/R-diagrammet, som et diagram over entiteter og relationer Tegneregler: Entitet

Database design for begyndere

En opsamling af artefakter for Hotel Databasen som REST-service Bygger på Hotel opgaven i 8 trin

Anne Randorff Højen

Databasesystemer fra forskellige synsvinkler

Projekt: Database. Multimedia Design: Semester 3 - projekt 01. Sabine Larsen cph-sl176@cphbusiness.dk. Anastasia Keller cph-ak186@cphbusiness.

Agenda. Ny Digital Strategi Data og Vækst Smart Government. Carsten Ingerslev:

Cross-Sectorial Collaboration between the Primary Sector, the Secondary Sector and the Research Communities

Historien om en ikonisk vase

BACK-END OG DATA: ADMINISTRATION HVAD ER DE NYE MULIGHEDER MED VERSION 7.1? STEFFEN BILLE RANNES, 4. FEBRUAR 2015

Introduktion til SQL queries

E K S T R A O R D I N Æ R G E N E R A F O R S A M L I N G E X T R A O R D I N A R Y G E N E R A L M E E T I N G. Azanta A/S. J.nr.

Brugsanvisning. Installation Manual

De vigtigste SQL-sætninger. SQL kap Oprette database. DDL og DML

3. semester, 2. projekt: Database

Portal Registration. Check Junk Mail for activation . 1 Click the hyperlink to take you back to the portal to confirm your registration

SAMLEVEJLEDNINGER / COLLECTION GUIDES

Kort A. Tidsbegrænset EF/EØS-opholdsbevis (anvendes til EF/EØS-statsborgere) (Card A. Temporary EU/EEA residence permit used for EU/EEA nationals)

Skriftlig eksamen i Databaser, Vinter 2001/2002. Pa opfordring har jeg udarbejdet mulige lsninger pa eksamensopgaverne, men

Dokumentation af produktionsudstyr til fødevarer

How Al-Anon Works - for Families & Friends of Alcoholics. Pris: kr. 130,00 Ikke på lager i øjeblikket Vare nr. 74 Produktkode: B-22.

Eksamen, DSDS, efterår 2007

Projekt Database, Gruppe 4A. Projekt 1, 3. Semester D A T A B A S E. Klasse MulA13 Gruppenummer: A4

Eksamen, DSDS, efterår 2008

Patientinddragelse i forskning. Lars Henrik Jensen Overlæge, ph.d., lektor

Frederiksen. Magnetic Field Dem. kit no Kraftlinieplader. Magnetic Field Demonstrator Ac

Semco Maritime - Vækst under vanskelige vilkår. Offshoredag 2009 Vice President Hans-Peter Jørgensen

IBM Network Station Manager. esuite 1.5 / NSM Integration. IBM Network Computer Division. tdc - 02/08/99 lotusnsm.prz Page 1

Eksempel på eksamensspørgsmål til caseeksamen

Tilladelse til vævscenter til håndtering af humane væv og celler Authorisation of tissue establishment for the handling of human tissues and cells

Profilbeskrivelse for Marketing, Globalisering og Kommunikation Marketing, Globalization and Communication

Aktivering af Survey funktionalitet

Skriftlig eksamen i. Databaser. Vinter 2002/2003. Vejledende løsninger

Opgave 1. Opret de 4 tabeller i FTSFrontend programmet. Indsæt mindst 3 forskellige tabelværdier i kunder, målerstatus, byer og regning..

GREEN KEY GREEN DREAMS

Projekt 1 - Database. Cphbusiness Lyngby Multimediedesigner, 3. semester. MulB13e, gruppe 4

Tema: Pets Fag: Engelsk Målgruppe: 4. klasse Titel: Me and my pet Vejledning Lærer

! Kia Dahlen. Kamilla Klein, Pia Jensen og Maria Korshøj Andersen.

Side 1. Databaser og SQL. Dagens gang. Databasebegreber. Introduktion til SQL Kap 1-5

Database. Pr jekt. Hold CLmul-a14e Gruppe 3 3. semester Vejledere: Tue Becher Ivan R. Frederiksen

2a. Conceptual Modeling Methods

Martin Lohse. Passing. Three mobile for accordion. Composed

Trolling Master Bornholm 2016 Nyhedsbrev nr. 5

! #!! $ % $! & " &'"! & *+ "! " $ $ ""!,-! $!.! $! " # 1!! &' "

Trolling Master Bornholm 2016 Nyhedsbrev nr. 6

Molio specifications, development and challenges. ICIS DA 2019 Portland, Kim Streuli, Molio,

/ SPRING 2013

Database kursus Forår 2013

PRÆSENTATION AF ER-DIAGRAMMER OG NORMALISERING

Traffic Safety In Public Transport

VÆR EFFEKTIV SOM SAS PROGRAMMØR MED SAS ENTERPRISE GUIDE 7.12 GEORG MORSING

User Manual for LTC IGNOU

WINDCHILL THE NEXT STEPS

Software Projekt NoSQL vs RMDB

CDIO CONCEIVE, DESIGN, IMPLEMENT, OPERATE - ELLER - UDDANNELSE PÅ INGENIØROMRÅDET

Information Integration

COLORS BY COPENHAGEN Blokken 23A 3460 Birkerød

Transkript:

Fra ER-Diagram til Relationel model i 7 step STEP 1: For regular entity type E in ER schema, create a relation R that includes all the simple attributes, and component attributes of composite attributes. Select the primary key. STEP 2: For weak entity type W in ER schema, with owner entity type E, create a relation R, include all simple attributes (or component attributes of composite attributes) of W as attributes of R. In addition, include the primary key attributes of the relation Q for the owner entity type E. Primary key is the combination of primary key of Q and partial key of R. STEP 3: For 1:1 relationship X, suppose S and T are the relations for the entity types participating in it. Include primary key of T as foreign key of S. Include other attributes of the relationship X as attributes of S. STEP 4: For 1:N relationship Y, suppose S relation corresponds to the entity type at the N-side, and T relation corresponds to the entity type at the other side. Include primary key of T as foreign key of S. STEP 5: For M:N relationship Z, create a new relation R to represent Z. Include simple attributes of Z in R. Include the primary keys of S and T as foreign keys of R, their combination forms the primary key of R. STEP 6: For multivalued attribute A, create a new relation R that includes an attribute corresponding to A. Include primary key of the relation of the entity type having A as an attribute. Primary key is their combination. STEP 7: For n-ary relationship type X, and n>2, create a new relation R. Include primary key of each participating entity type's relation as foreign key of R. Include attributes of X as simple attributes of R.

Oplæg

Step 1 Bil RegistreringsNr Type RegistreringsÅr Sælger AnsættelsesDato MedarbejderNr Vare VareNr Pris STEP 1: For regular entity type E in ER schema, create a relation R that includes all the simple attributes, and component attributes of composite attributes. Select the primary key. Kunde KundeNr

Step 2 STEP 2: For weak entity type W in ER schema, with owner entity type E, create a relation R, include all simple attributes (or component attributes of composite attributes) of W as attributes of R. In addition, include the primary key attributes of the relation Q for the owner entity type E. Primary key is the combination of primary key of Q and partial key of R. Vi har ingen svage entiteter

Step 3 Bil RegistreringsNr Type RegistreringsÅr Sælger AnsættelsesDato MedarbejderNr Kunde KundeNr Vare VareNr Pris STEP 3: For 1:1 relationship X, suppose S and T are the relations for the entity types participating in it. Include primary key of T as foreign key of S. Include other attributes of the relationship X as attributes of S. Indsætter Sælger som foreign key I Bil

Step 4 Bil RegistreringsNr Type RegistreringsÅr Sælger AnsættelsesDato MedarbejderNr Kunde KundeNr Vare VareNr Pris STEP 4: For 1:N relationship Y, suppose S relation corresponds to the entity type at the N-side, and T relation corresponds to the entity type at the other side. Include primary key of T as foreign key of S. Indsætter Sælger som FK I Kunde

Step 5 Bil RegistreringsNr Type RegistreringsÅr Sælger AnsættelsesDato MedarbejderNr Kunde KundeNr Vare VareNr Pris KøbesAf VareNr (FK) KundeNr (FK) STEP 5: For M:N relationship Z, create a new relation R to represent Z. Include simple attributes of Z in R. Include the primary keys of S and T as foreign keys of R, their combination forms the primary key of R. Indsætter tabellen købes af

Step 6 Bil RegistreringsNr Type RegistreringsÅr Sælger AnsættelsesDato MedarbejderNr Kunde KundeNr Vare VareNr Pris KøbesAf VareNr (FK) KundeNr (FK) STEP 6: For multivalued attribute A, create a new relation R that includes an attribute corresponding to A. Include primary key of the relation of the entity type having A as an attribute. Primary key is their combination. Opretter tabellen Nr

Step 7 STEP 7: For n-ary relationship type X, and n>2, create a new relation R. Include primary key of each participating entity type's relation as foreign key of R. Include attributes of X as simple attributes of R. Vi har ikke nogen n-ary relationer

Opgave Gentag med løsningen på Tennisopgaven