15 Pages

CmpE226-DB-L10n1

Course: CMPE 138, Fall 2008
School: San Jose State
Rating:
 
 
 
 
 

Word Count: 777

Document Preview

Design Dr. Database M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San Jos State University One Washington Square San Jos, CA 95192-0180 http://www.engr.sjsu.edu/~fayad 2003 SJSU -- CmpE L10-S1 Normalization Lesson 10: Normalization 2 2003 SJSU CmpE --- M.E. Fayad L10-S2 Normalization Lesson Objectives Objectives Understand the goals of normalization Explore...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> San Jose State >> CMPE 138

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Design Dr. Database M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San Jos State University One Washington Square San Jos, CA 95192-0180 http://www.engr.sjsu.edu/~fayad 2003 SJSU -- CmpE L10-S1 Normalization Lesson 10: Normalization 2 2003 SJSU CmpE --- M.E. Fayad L10-S2 Normalization Lesson Objectives Objectives Understand the goals of normalization Explore the problems of DB bad design Understand normalization Learn how to deal with normalization 3 2003 SJSU CmpE --- M.E. Fayad L10-S3 Normalization Relational Database Design Goals: Reduce data redundancy (undesirable replication of data values) Minimize anomaly problems (data model is structured in an improper manner) Maintain (correct) information Enforce semantic & integrity constraints, e.g., using dependency & domain constraints 4 Normalization 2003 SJSU CmpE --- M.E. Fayad L10-S4 Problems of Bad DB Design Data replication: extra storage, update anomalies Anomaly: costly & data inconsistency Loss of information: poor decomposition Un-enforced dependency constraints: dependencies are lost 5 2003 SJSU CmpE --- M.E. Fayad L10-S5 Normalization Normalization A db scheme design tool A process of replacing associations among attributes in a relation scheme An approximation of the relation schemes that should be created Objectives: accomplish the goals of relational database design Two approaches: decomposition & synthesis 6 L10-S6 Normalization 2003 SJSU CmpE --- M.E. Fayad Decomposition A process to split or decompose a relation until the resultant relations no longer exhibit the undesirable problems, e.g., data redundancy, data inconsistency, anomaly, etc. Decomposing a relation scheme R means breaking R into a pair of schemes, possibly intersecting + this process is repeated until all the decomposed relation schemes are in the desired (normal) form. 7 2003 SJSU CmpE --- M.E. Fayad L10-S7 Normalization Normal Forms (NFs) 1NF 2NF 3NF BCNF 4NF PJNF 8 2003 SJSU CmpE --- M.E. Fayad L10-S8 Normalization Normal Forms (NFs) restrictions on the db scheme that preclude certain undesirable properties (data redundancy, update anomaly, loss of information, etc.) from the DB. A relation scheme R is in PJNF if R is in 4NF if R is in BCNF if R is in 3NF if is R in 2NF if R is in 1NF 9 2003 SJSU CmpE --- M.E. Fayad L10-S9 Normalization Normal Forms (NFs) Definition. A data value v is atomic if v is not a (i) set of values or (ii) composite value; otherwise, v is non-atomic. First Normal Form (1NF). A relation scheme R is in 1NF if for every attribute A in R, the values in the domain of A, i.e., dom(A), are atomic. 10 2003 SJSU CmpE --- M.E. Fayad L10-S10 Normalization Normal Forms (NFs) Boyce-Codd Normal Form (BCNF). A relation scheme R is in BCNF if for every non-trivial FD X Y applied to R, X is a superkey for R. Definition. Let A be an attribute in a relation scheme R, and let F be a set of FDs over R. A is a prime attribute in R if A is contained in some candidate key of R; otherwise, A is a non-prime attribute in R. 11 2003 SJSU CmpE --- M.E. Fayad L10-S11 Normalization Normal Forms (NFs) Third Normal Form (3NF). A relation scheme R is in 3NF if 1 R is in 1NF, and 2 For every non-trivial FD X Y applied to R, either X is a superkey of R, or every attribute in Y is an attribute of some candidate key of R, i.e., prime. 12 Normalization 2003 SJSU CmpE --- M.E. Fayad L10-S12 Normal Forms (NFs) Lossy decomposition: a decomposition is lossy if the natural join of all the decomposed relations contain additional tuples and the original relation is lost. Lossless decomposition: a decomposition is lossless if the...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

San Jose State - CMPE - 138
5 Rules of Data Normalization1. Eliminate Repeating Groups - Make a separate table for each set of related attributes, and give each table a primary key. 2. Eliminate Redundant Data - If an attribute depends on only part of a multi-valued key, remov
San Jose State - CMPE - 138
NORMALIZATION By MATTIE MACGREGOR The aim of normalization is to remove certain kinds of data redundancy, and therefore avoid update anomalies. Update anomalies are difficulties with the insert, update and delete operations on a database due to the d
San Jose State - CMPE - 138
NormalizationWell normalized data makes programming (relatively) easy, and works very well in multi-platform, enterprise wide environments. Non-normalized data leads to heartbreak.Normalization: The first three formsFirst Normal Form: No repeati
San Jose State - CMPE - 138
Database Normalization By Ian Gilfillan By now some of you are familiar with the basics of using in your cgi scripts. Many of your databases will be small, with one or two tables. But as you become braver, tackling bigger projects, you may start find
San Jose State - CMPE - 138
Data Normalization Fundamentals by Luke Chung President of FMS Inc. http:/www.fmsinc.com Introduction The ability to analyze data in Access is a fundamental skill that all developers must master. The better you are at organizing your data and knowing
San Jose State - CMPE - 138
NormalizationT/F 1. Normalization is a design technique that is widely used as a guide in designing relational databases. T/F 2. Normalization is essentially a two step process that puts data into tabular form by removing repeating groups and then r
San Jose State - CMPE - 138
Database Normalization by David Faour A poor database design can cripple an application, producing problems with redundancy, inaccuracy, consistency, and concurrency of your data. Normalization is a process that serves to reduce, if not eliminate, th
San Jose State - CMPE - 138
Database Normalization And Design TechniquesBy: Barry Wise Introduction One of the most important factors in dynamic web page development is database definition. If your tables are not set up properly, it can cause you a lot of headaches down the ro
San Jose State - CMPE - 138
Lesson 12Object-Oriented DatabasesObject-Oriented DatabasesOODBMx xDB is a collection of objects each object represents a physical entity and an idea of interest to the DB application new trend in data modeling and DB processingxsGoal
San Jose State - CMPE - 138
Object Oriented Databases Are Worth a Closer LookObject-oriented databases (OODBs) can offer considerable advantages over relational databases (RDBs), yet application developers often opt for RDBs. Don't shortchange yourself. Learn the pros and cons
San Jose State - CMPE - 138
Object Oriented DatabaseGroup 4Mathieu Metz Palani Kumaresan Napa Gavinlertvatana Kristine Pei Keow Lee Prabhu Ramachandran Outline Object definitions Object Structures Objectoriented concepts OODBS OQL with an example SQL3 with ex
San Jose State - CMPE - 138
0.n Managed Person SSN Name Address 1.1 Manager
San Jose State - CMPE - 138
Database DesignDr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San Jos State University One Washington Square San Jos, CA 95192-0180 http:/www.engr.sjsu.edu/~fayad2003SJSU - CmpEL12-S1Spatiotmpora
San Jose State - CMPE - 138
International Journal of Geographic Information Systems, Special Issue on System Integration, Vol. 12, No 3, 1998O n sp a t i a l d a t a b a s e i n t e g r a t i o nThomas Devogele, Institut Gographique National - COGIT, F 94100 Saint Mand thoma
San Jose State - CMPE - 138
CmpE 226Database Design Project #1Fall 2003_ Express the following queries in SQL using the hospital database. First Question: SQL-Basic 1. Find the weight of Mr. Smith. 2. Find the age of Dr. Hardy. 3. Find the dates (month, day, year) of Mr.
San Jose State - CMPE - 138
University of California, DavisApplication Development MethodologyTechniquesEntity-Relationship Modeling TechniqueOverviewThis section describes the definition of entity types and their relationships. It defines entity and relationship concept
San Jose State - CMPE - 138
CmpE 226Database Design Project 2Fall 20031. Design an MLPQ/PReSTO constraint database with at least 6 constraint tables. The constraint tables should use the full power of linear constraints. (For example, the equality constraint x =1 does not
San Jose State - CMPE - 138
CmpE 226: Database Systems & Design1. Team Project Submission Guidelines:1. All team project materials must be submitted on time. 2. All team project submission must be handed in as hardcopies and must be submitted electronically. 3. For Electroni
San Jose State - CMPE - 138
Diagramming Techniques http:/www.nickerson.to/visprog/ch2/diagtech.htm Diagram-Tech.pdf
San Jose State - CMPE - 138
Object-Oriented Database Links: http:/www-2.cs.cmu.edu/People/clamen/OODBMS/ http:/www.service-architecture.com/object-oriented-databases/articles/index.html http:/www.service-architecture.com/object-oriented-databases/articles/odbms_faq.html http:/b
San Jose State - CMPE - 138
MyBusTeam Members: Kiran Patel Radhika Rajgopal Rajesh Dorairajan Abstract: In this project we propose to build a web-based tool called MyBus for the ACME Transportation Authority (ATA). This tool will help user plan a trip on ATA routes. It will al
San Jose State - CMPE - 138
UML Notation Guide3This guide describes the notation for the visual representation of the Unified Modeling Language (UML). This notation document contains brief summaries of the semantics of UML constructs, but the UML Semantics chapter must be c
San Jose State - CMPE - 138
XML & Database Links http:/www.dwinfocenter.org/ http:/db.cs.sfu.ca/sections/publication/kdd/kdd.html http:/db.cs.sfu.ca/ http:/www.anderson.ucla.edu/faculty/jason.frand/teacher/technologies/palace/datamining .htm http:/tech.irt.org/articles/js215/in
San Jose State - CMPE - 138
begin%Face%Head(i, x, y, t) :-i = 0,x > 100,x - y > -450,y < 650,x + y < 1250,x < 700,2x - y - 2t < 1150,y > 0,2x + y + 2t > 450,t >= 0,t <= 20.Hair(i, x, y, t) :-i = 501,x > 200,y <
San Jose State - CMPE - 138
begin %mtaufik%face(i, x, y) :- i = 1, -x <= 0,-y <= 0, x +0.16 y <= 10, x +0.51 y <= 11.09, x + y <= 13.97, x +1.97 y <= 21.82, x +6.31 y <= 63.1.face(i, x, y) :- i = 1, x <= 0, -y <= 0, -x +0.16 y <= 10, -x +0.51 y <= 11.09, -x + y <= 13.97, -x
San Jose State - CMPE - 138
begin%test%/* * County defined by name, id (for ease of use later) * County(name, cid) */County_id(name, cid):-name="Alameda", cid = 1.County_id(name, cid):-name="Marin", cid = 2.County_id(name, cid):-name="San Francisco", cid = 3.County_id(
San Jose State - CMPE - 138
Neeta Tomar CMPE-226 Project 1 Updated Problem StatementINTRODUCTIONThis project aimed at implementing a database representing the Real Estate Economics of five different Bay area counties based on the MLPQ system. The goal is to be able to do que
San Jose State - CMPE - 138
begin%Route%Current_Pos(road, x, y) :- road = 880, -x <= -221,x <= 229, -y <= -110, y <= 118.Route(road, x, y):- road = 680, 10x - 3y = 2500, x >= 250 ,
San Jose State - CMPE - 138
Binbin Lai and Tong LiCMPE226 Project#1 Problem Statement Title: Travel Information System Binbin Lai and Tong Li DescriptionThe objective of our project is to find the information of restaurants, shopping centers, gas stations, hotels, cities nea
San Jose State - CMPE - 138
begin%animation%head(id, x, y) :- x +0.41 y <= 10,x +2.41 y <= 24.14,-x +2.41 y <= 24.14,-x +0.41 y <= 10,-x -0.41 y <= 10,-x -2.41 y <= 24.14,x -2.41 y <= 24.14,x -0.41 y <= 10.hair(id, x, y) :- id = 1,x -0.09 y = 0.66,-x <= -1.51,x
San Jose State - CMPE - 138
begin %hospital%patient(name, id, cm, kg) :- name="Anderson", id=100, cm=200, kg=130.patient(name, id, cm, kg) :- name="Brown", id=111, cm=150, kg=50.patient(name, id, cm, kg) :- name="Davis", id=222, cm=190, kg=90.patient(name, id, cm, kg)
San Jose State - CMPE - 138
begin%animation%head(id, x, y) :- x +0.41 y <= 10,x +2.41 y <= 24.14,-x +2.41 y <= 24.14,-x +0.41 y <= 10,-x -0.41 y <= 10,-x -2.41 y <= 24.14,x -2.41 y <= 24.14,x -0.41 y <= 10.hair(id, x, y) :- id = 1,x -0.09 y = 0.66,-x <= -1.51,x
San Jose State - CMPE - 138
begin%SD% face(x,y):- x>=0, x<1, y>=-4, y<=4.face(x,y):- x>=1, x<2, y>=-12.46, y<=12.46.face(x,y):- x>=2, x<3, y>=-16.008, y<=16.008.face(x,y):- x>=3, x<4, y>=-18.848, y<=18.848.face(x,y):- x>=4, x<5, y>=-21.266, y<=21.266.
San Jose State - CMPE - 138
x hH}phV3Vh7 3pp hVep p5 p }p hV}pV7}h}a}pp}hh} PW d d Y W d f PWW ` UW `b d S PY Sg g YW U Si W d Pb d S Ug }3 XUTf5WRgVVRti}egVXa`BQhp9xV3VD}aH(VVR}1RWhVX}aPf dP3aPV&m5dB59eg`bVhUhXYaVR5aahacP`}Rgg~TW3Vx
Oklahoma State - SOIL - 4234
Oklahoma Cooperative Extension ServicePSS-2225OSU Soil Test InterpretationsHailin Zhang Bill RaunDirector, Soil, Water, and Forage Analytical LaboratorySoil Fertility ResearchJeff HatteyAnimal Waste and Nutrient ManagementOklahoma Coope
Arizona - GEOG - 230
Peer-review1/28/08Paper formatting Insert pg #'s Insert line #'s good for referencing a certain part of the paper
UCSD - ECE - 198
Nanoscale Science & Technology:Bottom-Up (& top-down) Paradigm d ) diInformation Storagehierarchical assemblyf d l i fundamental propertiesSemiconductor Nanowires as Building Blocks for NanoScience & TechnologyScience 294, 1313 (2001)Logic g
UCSD - ECE - 198
Degrees of Freedom: Nanowire HeterostructuresSemiconductor Nanowire Synthesisreactant1-d growth nucleationgold nanocatalystreactant t tNanografting HeterostructuresVapor-Liquid-Solid growthDendrimeric Nanografting HeterostructuresGener
UCSD - ECE - 198
ECE198 HW2 Due 6/4 1. We discussed on the syntheses of Si nanocrystals and fullerenes, CNT and Si nanowires, have you wondered in your curious mind that why we did not discuss diamond nanocrystals and diamond nanowires? Can your creative mind helps t
UCSD - ECE - 154
AN INTRODUCTION TO ERROR CORRECTING CODES Part 3Jack Keil Wolf ECE 154 CSpring 2009Introduction to LDPC Codes These codes were invented by Gallager in his Ph.D. dissertation at M.I.T. in 1960. They were ignored for many years since they were t
Allan Hancock College - ISSUE - 009
Aesthet(h)ics: On Levinas' ShadowMatthew SharpeSo if we are visited in our state by someone who has the skill to transform himself into all sorts of characters and represent all sorts of things, and he wants to show off himself and his poems to u
Berkeley - ASTRO - 00115135
Spectra Extracted from tstart=-1.070 tstop=4.950(Trigger Time, GPS=798091925.000000, Redshift, z=0.0)Power-Law Model FitNorm@15keV 6.1256e-03 (2.8320e-03 1.0653e-02)alpha -1.2461 (-1.7291 -0.7486)Energy Fluence (15-350 keV) 1.7188e-07 (1.2382e
UNC - LING - 101
HISTORICAL LINGUISTICS 2 Syntactic change, Lexical change & semantic change1. December, 2004Syntactic change - can change lots of ways We discussed morphological change loss of case system leading to stricter, more rigid word order - OE allowed
UNC - LING - 101
LANGUAGE ACQUISITION 2 Domains of development: phonetics, phonology SPEECH SEGMENTATION/phonetic development10 November 2004There is too much raw acoustic information in the speech stream Infants have to determine - which sounds are phonemic in t
Berkeley - ASTRO - 00115135
tmin 0.0035553110
UNC - LING - 101
KOREAN keubun ge haksaeng sa yen siki him dog student to buy to open to order keubundul gedul haksaengul sanungo yennungo sikinungo them dogs students a purchase an opening an orderSAMOAN A ma.na.o ma.tu.a ma.lo.si pu.no.u a.ta.ma.ki sa.va.li la.ga
UNC - LING - 101
PHONOLOGY I: Phonemes and allophones19. September, 2005PHONOLOGY ASKS: What are the phonetic/sound patterns in individual languages? Which of these patterns might be universal across languages? - look at different levels: feature, segment, and sy
UNC - LING - 101
ANIMAL COMMUNICATION - this is a long standing question: - the question is not whether animals have communication (which they certainly do), but whether they have language in the sense that humans do - this will clearly depend on how you define "lang
UNC - LING - 101
PHONOLOGY 3 23. September, 2005 More allophony, rule-writing, and syllable structure = more problems = rules and rule writing RULE WRITING CONVENTION /x/ [y] / [z] _ [q] Read: x becomes y in the environment of What about the English data we looked
UCSD - ECE - 123
Radio Astronomy AntennasECE 123 May 2009Green Bank Telescope (WVa)Diameter 100 m Frequency 300MHz - 50 GHz Beamwidth: !/D ~ 0.6 - 0.0003 deg Offset feed 2004 adjustable panels Surface accuracy ~ 0.5 mmOperated by National Radio Astronomy Observa
UNC - FEEDER - 011
The three frames are to be viewed successively on a television advertisement. The audience can be anyone who does not have a cell phone.
University of Florida - CGS - 3460
We Have Learned main() {.} Variable Definition Calculation Display We can do some real program! Write Pseudocode (like recipe to cook) Code in CExample: Calculate Function Values Problem: Suppose y = (x-1)2+10. What value will y be when
UNC - INLS - 111
A Pathfinder: Banking and Finance in ChinaIntroduction The remarkable success of China's economic opening and reform aimed at transforming central planning to a market economy has made the country a focus of international attention. The country has
Trinity U - CS - 3366
180 OpenMP, board size 8000, 100 steps, on Dione00 MPI, board size 8000, 100 steps, on XenaNN sequential/UEs, board size 8000, 100 steps, on Dione00 sequential/UEs, board size 8000, 100 steps, on XenaNN160Execution time (computation) in seconds
Trinity U - CS - 1323
CSCI 1323 (Discrete Structures), Spring 2002 Homework 4Assigned: February 28, 2002. Due: March 7, 2002, at the start of class. Credit: 30 points.1ProblemsDo the following problems. You do not need to turn in answers for the ones marked "Not t
Arizona - GEO - 519
GEOS. 419PROBLEM SET 3: HEAT FLOW Due: Wednesday, 11 April 2007Spring 20071.Consider the two columns below; the one on the left is an approximation of continental lithosphere, while the one on the right approximates oceanic lithosphere. In th
CSU Channel Islands - HLSYNTH - 512
- Radix-512 Divider Benchmark - Source: "Division and Square Root: Digit-Recurrence Algorithms and -Implementations" M.D. Ergegovac, T. Lang - VHDL Benchmark author: Alberto Nannarelli on Jan 28 1994 - Documentation -The division to be performed is a
UNC - READ - 5075507
Abstracts for the 3rd Annual Graduate Student Conference in ProbabilityMay 1-3, 2009hosted by The Department of Statistics and Operations Research at UNC- Chapel Hill and The Department of Mathematics at Duke UniversityFriday, May 1st9:30-9:50 a
UNC - READ - 1605583
Club QuarterlyShare with all of your membersVolume 11, October 2003 Produced by Lora Lantz, Membership Manager & Lorin Huffman, Associate USA Triathlon 616 W. Monument St. Colorado Springs, CO 80905__ Table of Contents:Featured Club of the Quart
UNC - READ - 2807585
LAW ACQUISTIONS LIBRARIAN And ASSISTANT/ASSOCIATE PROFESSOR OF LIBRARY ADMINISTRATION 1ALBERT E. JENNER, JR. MEMORIAL LAW LIBRARYUniversity of Illinois Library at Urbana-ChampaignPosition Available: June 1, 2005. The Albert E. Jenner, Jr. Memorial
UNC - READ - 1498922
THE UNIVERSITY OF IOWA LIBRARIES IOWA CITY, IOWA Position Vacancy JAPANESE STUDIES LIBRARIAN Position Description: The Japanese Studies Librarian will have a primary assignment providing collection management and public services to students and facul