Database Concepts A database is an organized collection of logically related data. Data are raw facts.(not processed) meaningless Information processed.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Database Management System MIS 520 – Database Theory Fall 2001 (Day) Lecture 13.
Management Information Systems, Sixth Edition
The Relational Database Model
Relational Databases Chapter 4.
Computer Concepts 5th Edition Parsons/Oja Page 492 CHAPTER 10 File And Database Concepts Section A PARSONS/OJA Databases.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
ETEC 100 Information Technology
Database Management: Getting Data Together Chapter 14.
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Business Driven Technology Unit 2 Exploring Business Intelligence Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
BUSINESS DRIVEN TECHNOLOGY
Databases and Database Management Systems
Chapter 1 Introduction to Databases
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Databases Creating databases to store information.
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
DATA MODELLING TOOLS FOR ORGANISING DATABASES. For a database to be organised and logical, it must be well-designed and set out. In such cases, the databases.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Database Management System Lecture 6 The Relational Database Model – Keys, Integrity Rules.
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
 Definition  Components  Advantages  Limitations Contents  DBMS DBMS  Functions Functions  Architecture Architecture.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Management Information Systems By Effy Oz & Andy Jones
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Storing Organizational Information - Databases
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Organizing Data and Information. What is Data?? Numbers, characters, images, or other method of recording, in a form which can be assessed by a human.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Flat Files Relational Databases
Session 1 Module 1: Introduction to Data Integrity
Introduction to Databases Dr. Osama AL Rababah. Objectives In this capture you will learn: Some common uses of database systems. The characteristics of.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
CompSci 280 S Introduction to Software Development
Microsoft Office Access 2010 Lab 1
Information Systems Today: Managing in the Digital World
CIS 155 Table Relationship
CIS 207 The Relational Database Model
Chapter 4 Relational Databases
Databases and Information Management
What is a Database and Why Use One?
Normalization Referential Integrity
Data Model.
Databases and Information Management
Database Design Hacettepe University
Relational data model. Codd's Rule E.F Codd was a Computer Scientist who invented Relational model for Database management. Based on relational model,
Presentation transcript:

Database Concepts A database is an organized collection of logically related data. Data are raw facts.(not processed) meaningless Information processed data meaningful 3A31Kevin Choi /08/1992 3A30Maria Leung /09/1993 3A20Billy Wong /08/1994 Below are raw data ( 原始數據 ) StudIDStudNamePhoneDateBirth 3A31Kevin Choi /08/1992 3A30Maria Leung /09/1993 3A20Billy Wong /08/1994 The data become meaningful information when a structure is provided. Metadata (which means “data about the data”) are the data that describe data structure, data definitions, rules and descriptions. It describes the properties of data but does NOT include the raw data. NameData structureRulesDescription Data typeLengthMinMaxFormat StudIDNumber4Unique code that identifies the student StudNameText30Name of a student PhoneText12(852) Phone of a student DateBirthDate8Birthday of a student

STRUCTURE OF DATA IN A DATABASE Database A database contains logically related tables. Tables ( 表格 ) A table is a group of related records. A table is identified by a table name. e.g. STUDENT, SUBJECT, SUBJECTMARK Records ( 記錄 ) A record is a set of related fields. Each record has an unique record number Each record is identified by a primary key, not by record number. e.g. StudID is primary key (uniquely identify a record) Two students could not have the same StudID. Fields ( 欄位 ) A field is a property of a certain object or event. e.g. ClassNo,StudName,Phone,DateBirth Characters -Represent field values of all data types. 15/08/ Kelvin Choi3A31 DateBirthPhoneStudNameStudID 3A31 15/08/ Kelvin Choi DateBirthPhoneStudNameStudID STUDENT StudIDSubjectIDMark 3A SUBJECT Record number 3A /08/ Kelvin Choi3A31 DateBirthPhoneStudNameStudID Primary key 12/09/ Maria Leung SUBJECTMARK English Name 01 SubjectID

Database SCHOOL.mdb STUDENT SUBJECTMARK StudIDSubjectIDmark 3A31 3A SubjectIDName English Math. SUBJECT StudID 3A31 StudName Kelvin Choi Phone DateBirth 15/08/ Fields characters Records Tables database table records fields characters EXAMPLE OF DATABASE

A database also contains relationships among tables. Tables are linked by relationships (with foreign keys and primary keys) Keys are used to organize, access, link tables and maintain database. Primary key is a field or combination of fields that uniquely identify a particular record in a table. Each table has one and only one primary key. unique (identify a particular record) and non-empty. e.g. STUDENT (StudID, StudName, Phone, DateBirth) StudID is a unique primary key to identify a particular student. Two students cannot have the same StudID. e.g. SUBJECT (SubjectID, Name) SubjectID is a unique primary key to identify a particular subject. Two subjects cannot have the same SubjectID. e.g. SUBJECTMARK (StudID, SubjectID, mark) StudID and SubjectID in SUBJECTMARK table together form a primary key to identify mark of a subject obtained by a student. Neither StudID nor SubjectID alone is unique. There could not be two marks for a subject taken by a student.

SCHOOL Foreign key is a field in one table that points to the primary key of another table for linking. e.g. StudID in SUBJECTMARK table alone is a foreign key that points to the primary key StudID in STUDENT table. SubjectID in SUBJECTMARK table alone is a foreign key that points to the primary key SubjectID in SUBJECT table. The foreign key StudID and SubjectID are underscored with a solid line since they are part of the primary key. e.g. There are many students in a school. But one student only belongs to one school. Add a foreign key SCHOOLID in STUDENT table (many side) and underscore it with a dotted line (since it is not part of primary key of STUDENT) to link to the primary key SCHOOLID of of the SCHOOL table (one side). STUDENT (StudID, StudName, Phone, DateBirth, SCHOOLID) SCHOOL(SCHOOLID, schoolname) foreign key Primary key STUDENTSUBJECTMARK 3A31 3A30 StudID marksSubjectID English Math. Name SubjectID SUBJECT 15/08/ Kelvin Choi3A31 DateBirth. StudName. PhoneStudID Primary key foreign key Primary key

A database consists of user data and Metadata, etc. User Data Tables Meta Data (data dictionary) Contains structure of all tables and relationships among them.

Characteristics of a relational database 1. Data integrity( 數據完整) Integrity Constraints Ensure the accuracy and integrity of data. 1. Domain Constraints A domain is a set of values that may be assigned to an attribute. e.g. exam marks ranges from 0 to 100. A domain constraint defines data type, data size and allowable range. 2. Entity Integrity Constraints Every table must have a primary key (must be unique and non-empty). Must be unique Must not be empty

2. Referential Integrity Constraints Relationships between tables are established through foreign keys. Foreign key must be in the table on the many side  e.g. A student may study more than one subject. Foreign keyPrimary key Addition of records A subject mark record for a student should not be entered in Mark table if there is no such student record in student table. Update of records If the studID of a student record changes, all corresponding records of the student changes as well in mark table. Deletion of records If a student record is deleted in student table, all corresponding records of the student will be deleted as well in mark table. e.g. A employee belongs to only one department. Primary key Foreign key

Advantages of DATABASE Reduced data redundancy( 減少重覆數據 ) eliminate the redundancy by integrating the files with foreign keys. Data are now stored only once. Whenever these data are needed, they are retrieved from another table based on foreign key. More information from the same amount of data Integration of the operated data may be possible to get additional information for the same data. Sharing of data Database can be shared by all authorized ( 授權 ) users. Improved security Database requires user names and passwords from users to access its data and grants different access rights to different users to retrieve, insert, update or delete data. Enforcement of standards ( 強制標準 ) Necessary standards including data formats, naming conventions, documentation standards, update procedures and access rules are enforced. Improved maintenance Database approach provides a data independence. As a change of data structure in the database will be affect the application program, it simplifies database application maintenance. Increased concurrency ( 同時性 ) Database can manage concurrent data access effectively. It ensures no interference between users that would not result any loss of information nor loss of integrity. Economy of scale Cost savings can be obtained by combining all organization's operational data into one database with applications to work on one source of data.