Informal Design Guidelines. March 23, 2008 DB:EER Model - 1 1

Relaterede dokumenter
Database. lv/

Vores mange brugere på musskema.dk er rigtig gode til at komme med kvalificerede ønsker og behov.

Basic statistics for experimental medical researchers

Project Step 7. Behavioral modeling of a dual ported register set. 1/8/ L11 Project Step 5 Copyright Joanne DeGroat, ECE, OSU 1

On the complexity of drawing trees nicely: corrigendum

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

Linear Programming ١ C H A P T E R 2

Engelsk. Niveau D. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

Privat-, statslig- eller regional institution m.v. Andet Added Bekaempelsesudfoerende: string No Label: Bekæmpelsesudførende

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

Engelsk. Niveau C. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

Appendix 1: Interview guide Maria og Kristian Lundgaard-Karlshøj, Ausumgaard

Aktivering af Survey funktionalitet

Special VFR. - ved flyvning til mindre flyveplads uden tårnkontrol som ligger indenfor en kontrolzone

Fra ER-Diagram til Relationel model i 7 step

Shooting tethered med Canon EOS-D i Capture One Pro. Shooting tethered i Capture One Pro 6.4 & 7.0 på MAC OS-X & 10.8

Views etc. Databaser

United Nations Secretariat Procurement Division

User Manual for LTC IGNOU

CS 4390/5387 SOFTWARE V&V LECTURE 5 BLACK-BOX TESTING - 2

Sikkerhedsvejledning

ECE 551: Digital System * Design & Synthesis Lecture Set 5

Userguide. NN Markedsdata. for. Microsoft Dynamics CRM v. 1.0

Teknologispredning i sundhedsvæsenet DK ITEK: Sundhedsteknologi som grundlag for samarbejde og forretningsudvikling

Conceptual, logic, physical

E-PAD Bluetooth hængelås E-PAD Bluetooth padlock E-PAD Bluetooth Vorhängeschloss

Vina Nguyen HSSP July 13, 2008

DET KONGELIGE BIBLIOTEK NATIONALBIBLIOTEK OG KØBENHAVNS UNIVERSITETS- BIBLIOTEK. Index

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

Unitel EDI MT940 June Based on: SWIFT Standards - Category 9 MT940 Customer Statement Message (January 2004)

OXFORD. Botley Road. Key Details: Oxford has an extensive primary catchment of 494,000 people

PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU

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

ATEX direktivet. Vedligeholdelse af ATEX certifikater mv. Steen Christensen

MSE PRESENTATION 2. Presented by Srunokshi.Kaniyur.Prema. Neelakantan Major Professor Dr. Torben Amtoft

Den nye Eurocode EC Geotenikerdagen Morten S. Rasmussen

South Baileygate Retail Park Pontefract

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

3D NASAL VISTA TEMPORAL

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

QUICK START Updated:

Eksempel på eksamensspørgsmål til caseeksamen

Søren Løbner (lobner) ddb Databaser

Bookingmuligheder for professionelle brugere i Dansehallerne

Resource types R 1 1, R 2 2,..., R m CPU cycles, memory space, files, I/O devices Each resource type R i has W i instances.

Besvarelser til Lineær Algebra Reeksamen Februar 2017

Hvor er mine runde hjørner?

A multimodel data assimilation framework for hydrology

USERTEC USER PRACTICES, TECHNOLOGIES AND RESIDENTIAL ENERGY CONSUMPTION

ROTERENDE TABURET 360 GRADER MED HYL Brugsanvisning. ROTATING SHOWER STOOL WITH TRAY Installation Manual. Size: 148 x 210 mm 105g copper paper

Generalized Probit Model in Design of Dose Finding Experiments. Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US

Quality indicators for clinical pharmacy services

Kalkulation: Hvordan fungerer tal? Jan Mouritsen, professor Institut for Produktion og Erhvervsøkonomi

Richter 2013 Presentation Mentor: Professor Evans Philosophy Department Taylor Henderson May 31, 2013

University of Copenhagen Faculty of Science Written Exam - 3. April Algebra 3

DENCON ARBEJDSBORDE DENCON DESKS

Overfør fritvalgskonto til pension

Applications. Computational Linguistics: Jordan Boyd-Graber University of Maryland RL FOR MACHINE TRANSLATION. Slides adapted from Phillip Koehn

Trolling Master Bornholm 2012

QUICK START Updated: 18. Febr. 2014

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

Læs vejledningen godt igennem, før du begynder at samle vuggen. Please read the instruction carefully before you start.

Bachelorprojekt. Forår 2013 DMD10

The X Factor. Målgruppe. Læringsmål. Introduktion til læreren klasse & ungdomsuddannelser Engelskundervisningen

Backup Applikation. Microsoft Dynamics C5 Version Sikkerhedskopiering

Subject to terms and conditions. WEEK Type Price EUR WEEK Type Price EUR WEEK Type Price EUR WEEK Type Price EUR

Application form for access to data and biological samples Ref. no

Boligsøgning / Search for accommodation!

Statistik for MPH: 7

TDC 4 Indoor voltage transformers

Udbud på engelsk i UCL. Skabelon til beskrivelse

Microsoft Dynamics C5. version 2012 Service Pack 01 Hot fix Fix list - Payroll

Skriftlig Eksamen Beregnelighed (DM517)

Skriftlig Eksamen Beregnelighed (DM517)

Fejlbeskeder i SMDB. Business Rules Fejlbesked Kommentar. Validate Business Rules. Request- ValidateRequestRegist ration (Rules :1)

Observation Processes:

3D NASAL VISTA 2.0

Measuring the Impact of Bicycle Marketing Messages. Thomas Krag Mobility Advice Trafikdage i Aalborg,

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model. Database Design Phases. Chapter Outline

Dagens program. Incitamenter 4/19/2018 INCITAMENTSPROBLEMER I FORBINDELSE MED DRIFTSFORBEDRINGER. Incitamentsproblem 1 Understøttes procesforbedringer

Agenda. The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark

Forventer du at afslutte uddannelsen/har du afsluttet/ denne sommer?

DANSK INSTALLATIONSVEJLEDNING VLMT500 ADVARSEL!

University of Copenhagen Faculty of Science Written Exam April Algebra 3

Financial Literacy among 5-7 years old children

DSB s egen rejse med ny DSB App. Rubathas Thirumathyam Principal Architect Mobile

Bedømmelse af klinisk retningslinje foretaget af Enhed for Sygeplejeforskning og Evidensbasering Titel (forfatter)

Black Jack --- Review. Spring 2012

Skriftlig Eksamen Kombinatorik, Sandsynlighed og Randomiserede Algoritmer (DM528)

Microsoft Development Center Copenhagen, June Løn. Ændring

Forslag til implementering af ResearcherID og ORCID på SCIENCE

University of Copenhagen Faculty of Science Written Exam - 8. April Algebra 3

Status på det trådløse netværk

Microsoft Dynamics C5. Nyheder Kreditorbetalinger

Trolling Master Bornholm 2015

Da beskrivelserne i danzig Profile Specification ikke er fuldt færdige, foreslås:

Notifikation om markedsføring i Danmark af alternative inve- steringsfonde etableret i et EU/EØS land af en forvalter etable- ret i Danmark

Slot diffusers. Slot diffusers LD-17, LD-18

Sikkerhed & Revision 2013

Evaluating Germplasm for Resistance to Reniform Nematode. D. B. Weaver and K. S. Lawrence Auburn University

Transkript:

Informal Design Guidelines March 23, 2008 DB:EER Model - 1 1

Objectives Measuring the Quality of Relational Database Design + Database Design Methodology + Informal Design Guidelines for Relational Schema + March 23, 2008 DB:EER Model - 1 2

- Measuring the Quality of Relational Database Design At logical level How users interpret relation schemas and the meaning of attributes? At the physical level How the tuples in a base relation are stored and updated. March 23, 2008 DB:EER Model - 1 3

- Database Design Methodology A Bottom-Up Method We start by identifying all the attributes then trying to group attributes based on some relationships, to build relations. A Top-Down Method We start by identifying all the grouping of attributes into relations and then analyze these relation to further decompose them to produce better relations. Note: The theory discussed in this chapter is applicable to both these approaches, but is more practical when applied to topdown approach. March 23, 2008 DB:EER Model - 1 4

- Informal Design Guidelines for Relational Schema The four informal Guidelines to measures the quality of relational schema design are: Guideline 1: Semantic of Relation Attributes + Guideline 2: Reducing the Redundant Values in Tuples + Guideline 3: Reducing the Null Values in Tuples + Guideline 4: Disallowing Generating Spurious Tuples + March 23, 2008 DB:EER Model - 1 5

-- Guideline 1: Semantic of Relation Attributes Design a relational schema so that it is easy to explain its meaning. Do not combine attributes from multiple entity types and relationship types into a single relation. Intuitively, if a relation schema corresponds to one entity type, or one relationship type, the meaning tends to be clear March 23, 2008 DB:EER Model - 1 6

--- Example of Good Design EMPLOYEE Ename SSN Bdate Address Dnumber DEPT_LOCATIONS Dnumber Dlocation DEPARTMENT Dname Dnumber Dmgrssn WORKS_ON SSN Pnumber Hours PROJECT Pname Pnumber Plocation Dnum March 23, 2008 DB:EER Model - 1 7

--- Example of Good Design EMPLOYEE Ename SSN Ddate Address Dnumber Salah 111 1965-01-09 Khobar 5 Wael 222 1955-12-08 Khobar 5 Zaher 333 1968-07-19 Dammam 4 Walid 444 1941-06-20 Dhahran 4 Nasser 555 1962-09-15 Jubail 5 Essam 666 1972-07-31 Khobar 5 Jabber 777 1969-03-29 Khobar 4 Bader 888 1937-11-10 Khobar 1 DEPARTMENT Dname Dnumber DMGRManager Research 5 222 Administration 4 444 Headquarters 1 888 March 23, 2008 DB:EER Model - 1 8

--- Example of Good Design PROJECT Pname Pnumber Plocation Dnum Product X 1 Dhahran 5 Product Y 2 Jubail 5 Product Z 3 Khobar 5 Computerization 10 Dammam 4 Reorganization 20 Khobare 1 Newbenefit 30 Dammam 4 DEPT_LOCATIONS Dnumber Plocation 1 Khobar 4 Dammam 5 Dhahran 5 Jubail 5 Khobar WORKS_ON Ssn Pnumber Hours 111 1 32.5 111 2 7.5 555 3 40.0 666 1 20.0 666 2 20.0 222 2 10.0 222 3 10.0 222 10 10.0 222 20 10.0 333 30 30.0 333 10 10.0 777 10 35.0 777 30 5.0 444 30 20.0 444 20 15.0 888 20 null March 23, 2008 DB:EER Model - 1 9

--- Example of Bad Design EMP_DEPT Ename SSN Bdate Address Dnumber Dname DmgrSsn EMP_PROJ Dept. Specific info. Employee Related info. Attributes which violate the guideline SSN Pnumber Hours Ename Pname LOcation Employee Related to project March 23, 2008 DB:EER Model - 1 10

-- Guideline 2: Reducing The Redundant Values in Tuples Design the base relation schemas so that no insertion, deletion, or modification anomalies are present in the relation. If any anomalies are present, note them clearly and make sure that the programs that update the database will operate correctly. Due to improper grouping of attributes into a relation schema, the following problems are encountered. Storage wastage + Insert anomalies + Delete anomalies + Modification anomalies + March 23, 2008 DB:EER Model - 1 11

--- Storage Wastage Redundant data Ename SSN Ddate Address Dnumber Salah 111 1965-01-09 Khobar 5 Wael 222 1955-12-08 Khobar 5 Zaher 333 1968-07-19 Dammam 4 Walid 444 1941-06-20 Dhahran 4 Nasser 555 1962-09-15 Jubail 5 Essam 666 1972-07-31 Khobar 5 Jabber 777 1969-03-29 Khobar 4 Bader 888 1937-11-10 Khobar 1 Dname DMGRManager Headquarters 888 EMP_DEPARTMENT Solution March 23, 2008 DB:EER Model - 1 12

--- Insert Anomalies EMP_DEPARTMENT Ename SSN Ddate Address Dnumber Salah 111 1965-01-09 Khobar 5 Wael 222 1955-12-08 Khobar 5 Zaher 333 1968-07-19 Dammam 4 Walid 444 1941-06-20 Dhahran 4 Nasser 555 1962-09-15 Jubail 5 Essam 666 1972-07-31 Khobar 5 Jabber 777 1969-03-29 Khobar 4 Bader 888 1937-11-10 Khobar 1 Ali 999 1967-10-15 Dammam 6 Dname DMGRManager Headquarters 888 Accounting 111 A null primary Key Newly inserted rows Solution March 23, 2008 DB:EER Model - 1 13

--- Delete Anomalies EMP_DEPARTMENT Ename SSN Ddate Address Dnumber Salah 111 1965-01-09 Khobar 5 Wael 222 1955-12-08 Khobar 5 Zaher 333 1968-07-19 Dammam 4 Walid 444 1941-06-20 Dhahran 4 Nasser 555 1962-09-15 Jubail 5 Essam 666 1972-07-31 Khobar 5 Jabber 777 1969-03-29 Khobar 4 Bader 888 1937-11-10 Khobar 1 Dname DMGRManager Headquarters 888 Deleting Borg. James will delete the only information of department 1 from the database Solution March 23, 2008 DB:EER Model - 1 14

--- Modification Anomalies Updating the manager of Smith to 444 will cause inconsistency Ename SSN Ddate Address Dnumber Salah 111 1965-01-09 Khobar 5 Wael 222 1955-12-08 Khobar 5 Zaher 333 1968-07-19 Dammam 4 Walid 444 1941-06-20 Dhahran 4 Nasser 555 1962-09-15 Jubail 5 Essam 666 1972-07-31 Khobar 5 Jabber 777 1969-03-29 Khobar 4 Bader 888 1937-11-10 Khobar 1 Dname DMGRManager Research 444 Headquarters 888 EMP_DEPARTMENT Solution March 23, 2008 DB:EER Model - 1 15

-- Guideline 3: Reducing Null Values in Tuples If possible avoid placing attributes in a base relation whose values may frequently be null. If nulls are unavoidable, make sure they apply in exceptional cases only and not to majority of tuples in a relation. Problems with null values: Waste of disk space Problem of understanding the meaning of attributes Problems in specifying JOIN operations Problems in applying some aggregate functions May have multiple interpretations (not applicable, unknown, unavailable) March 23, 2008 DB:EER Model - 1 16

-- Guideline 4: Disallowing generating Spurious Tuples Make sure that the foreign keys refer to unique keys. Lid Fname Lname Salary 1 Adel Adam 1000 2 Aggel Hassan 1100 3 Adel Khaled 1200 SID Sname Lname ICS334 DB Adel ICS434 OS Yahya ICS202 DS Adel Lecturers Which Adel is the teacher of DB Subjects March 23, 2008 DB:EER Model - 1 17

-- Guideline 4: Disallowing generating Spurious Tuples Lid Fname Lname Salary 1 Adel Adam 1000 2 Ageel Hassan 1100 3 Adel Khaled 1200 Lecturers SID Sname Fname ICS334 DB Adel ICS434 OS Yahya ICS202 DS Adel Subjects SELECT L.LID, L.Fname, S.Sname FROM lecturers L, Subjects S Where S.Fname = L.Fname LID Fname Sname 1 Adel DB 2 Yahya OS 3 Adel DB 1 Adel DS 2 Adel DS March 23, 2008 DB:EER Model - 1 18

-- Guideline 4: Disallowing generating Spurious Tuples Design relational schemas so that they can be joined with equality conditions of attributes that are easier primary keys or foreign keys in a way that guarantees that no spurious tuples are generated. Do not have relations that contain matching attributes other than foreign key-primary key combination. If such relations are unavoidable, do not join them on such attributes, because the join may produce spurious tuples EMP_PROJ1 SSN Pnumber Hours Pname Plocation EMP_LOCS Ename Plocation EMP_PROJ SSN Pnumber Hours Ename Pname Plocation March 23, 2008 DB:EER Model - 1 19