Database Terms t DBMS –Database Management System. A software used to organise, analyse, store, retrieve, and edit information. –e.g., Visual FoxPro, Access.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Normalisation Ensuring data integrity in database design 1.
Athabasca University Under Development for COMP 200 Gary Novokowsky
Topic Denormalisation S McKeever Advanced Databases 1.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
The Relational Database Model:
Chapter 5 Normalization of Database Tables
Project and Data Management Software
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases and Database Management Systems
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1 Created By Martin Schedlbauer
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Modelling Techniques - Normalisation Description and exemplification of normalisation.Description and exemplification of normalisation. Creation of un-normalised.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
BUS1MIS Management Information Systems Semester 1, 2012 Access: Creating a Database Week 6 Lecture 2.
Concepts and Terminology Introduction to Database.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Concepts of Database Management, Fifth Edition
The Relational Model and Normalization R. Nakatsu.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Normalization. We will take a look at –First Normal Form –Second Normal Form –Third Normal Form There are also –Boyce-Codd, Fourth and Fifth normal forms.
Database Design (Normalizations) DCO11310 Database Systems and Design By Rose Chang.
資料庫正規化 Database Normalization 取材自 AIS, 6 th edition By Gelinas et al.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
CORE 2: Information systems and Databases NORMALISING DATABASES.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
ITN Table Normalization1 ITN 170 MySQL Database Programming Lecture 3 :Database Analysis and Design (III) Normalization.
+ Information Systems and Databases 2.2 Organisation.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
Database Concepts A database is an organized collection of logically related data. Data are raw facts.(not processed) meaningless Information processed.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lection №4 Development of the Relational Databases.
Normalisation RELATIONAL DATABASES.  Last week we looked at elements of designing a database and the generation of an ERD  As part of the design and.
Flat Files Relational Databases
Sample Table Standard Notation Entity name in uppercase
Databases Database Normalisation. Learning Objectives Design simple relational databases to the third normal form (3NF).
Lecture 4: Logical Database Design and the Relational Model 1.
NormalisationNormalisation Normalization is the technique of organizing data elements into records. Normalization is the technique of organizing data elements.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 4: PART C LOGICAL.
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
Normalisation Worked example for an Order Remember : The data should depend upon the key, the whole key and nothing but the key.
NORMALISATION OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
Normalizing Database Designs. 2 Objectives In this chapter, students will learn: –What normalization is and what role it plays in the database design.
Chapter 4 Relational Databases
Chapter 9 Designing Databases
Normalization A337.
Relational Database Model
DATABASE Purpose of database
Presentation transcript:

Database Terms t DBMS –Database Management System. A software used to organise, analyse, store, retrieve, and edit information. –e.g., Visual FoxPro, Access

Database Terms t Database –collection of data organised for storage in a computer memory. In relational database, information are stored in the form of table.

Database Terms t Record –a unit of storage in a database. In relational database, the rows of table represent records.

Database Terms t Field –a data unit in a record. In relational database, the columns of table represent fields. Since fields have different characteristics (numeric, character, date, etc.), they are also called “attributes”.

Database Terms t Key –a KEY is used to uniquely identify a record in the database. –a KEY can be a single field or combination of fields

Database namestud_iddob WinnieF00111{02/14/83} AmyF00112{03/16/82} SteveF00007{10/28/83} AmyF00246{08/25/82} Field Record Key

Database Design t Aims –to keep data integrity (correctness and completeness) with the least for space data duplication updating efforts

Database Design t Basic design –there must exist a KEY that uniquely determines the entire record –e.g., student identity that uniquely determines a student record

Sample Address Book Name: Tele: Address:

Sample Address Book Name Tele Field name Char. Data type 15 8 Width ADDRBOOK.DBF AddressChar.40

Sample Student Report Student ID: f99007Student Name: Wong Siu Fu Average Mark: Subject Code Subject Description. Marks C01 E01 Chinese English M01Mathematics Class: 6F

Sample Student Report stud_id name sub_code sub_desc marks ave_mk Field name Char. Numeric Data type (2 d.p.) Width SREPORT.DBF classChar.2

Sample Student Report SREPORT(stud_id, name, class, sub_code, sub_desc, marks, ave_mk)

Sample Student Report Student ID: f99008Student Name: Po King Wan Average Mark: Subject Code Subject Description. Marks C01 E01 Chinese English M01Mathematics Class: 6F

Database Terms t Data Redundancy ( 冗餘數據 ) –same data item exists in one or more databases. –Disadvantage: duplication causes wasted storage space efforts to maintain common data up-to-date

Database Terms t Data Integrity ( 數據完整性 ) –refers to the correctness and completeness of information in the database.

Data Normalisation t a step-by-step process that is used to decompose a database into two or more databases t in order to avoid side effects during the operation of a database involving insertion, deletion and updating records.

Data Normalisation t First Normal Form (1NF) t Second Normal Form (2NF) t Third Normal Form (3NF)

Data Normalisation t First Normal Form (1NF) –if every attribute is based upon a simple, unique value, i.e., there are no repeating groups of attribute types.

Sample Student Report SREPORT(stud_id, name, class, (sub_code, sub_desc, marks), ave_mk)

Data Normalisation Deriving 1NF SREPORT(stud_id, name, class, ave_mk) MARKS(stud_id, sub_code, sub_desc, marks)

Data Normalisation t Second Normal Form (2NF) –it is already in 1NF and if each non-key attribute depends fully upon the key.

Data Normalisation SREPORT(stud_id, name, class, ave_mk) MARKS(stud_id, sub_code, sub_desc, marks)

Data Normalisation Deriving 2NF SREPORT(stud_id, name, class, ave_mk) MARKS(stud_id, sub_code, marks) SUBJECT(sub_code, sub_desc)

Data Normalisation t Third Normal Form (3NF) –it is already in 2NF and if there is no dependency between non-key attribute.

Data Normalisation Deriving 3NF SREPORT(stud_id, name, class, ave_mk) MARKS(stud_id, sub_code, marks) SUBJECT(sub_code, sub_desc)

Sample Invoice INVOICE NUMBER: Customer Number: C12345 Customer Address: Hang Shin Link Invoice Date: 04/01/99 Item CodeItem Desc.Item PriceQuantityPrice Total: Chocolate Coke

Data Normalisation Invoice(Inv_no, Cust_no, Cust_Addr, Inv_date, (Item_code, Item_desc, Item_price, Qty, Price), Total)

Data Normalisation Deriving 1NF Invoice(Inv_no, Cust_no, Cust_Addr, Inv_date, Total) ItemDetails(Inv_no, Item_code, Item_desc, Item_price, Qty, Price)

Data Normalisation Deriving 2NF Invoice(Inv_no, Cust_no, Cust_Addr, Inv_date, Total) ItemDetails(Inv_no, Item_code, Qty, Price) Items(Item_code, Item_desc, Item_price)

Data Normalisation Deriving 3NF Invoice(Inv_no, Cust_no, Inv_date, Total) Customer(Cust_no, Cust_Addr) ItemDetails(Inv_no, Item_code, Qty, Price) Items(Item_code, Item_desc, Item_price)

Partial Dependence ItemDetails(Inv_no, Item_code, Item_desc, Item_price, Qty, Price) The non-key fields “Item_desc” and “Item_price” is dependent partly on the key, i.e., “Item_code”. This is known as partial dependence.

Transitive Dependence Invoice(Inv_no, Cust_no, Cust_Addr, Inv_date, Total) The non-key field “Cust_Addr” is dependent on the non-key field “Cust_no”, this is known as transitive dependence.

Database Terms t Data Independence –refers to the data in a database which is separated from the application programs that manipulate it.