Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn



Similar documents
14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati

Databases What the Specification Says

TIM 50 - Business Information Systems


IT2304: Database Systems 1 (DBS 1)

COMHAIRLE NÁISIÚNTA NA NATIONAL COUNCIL FOR VOCATIONAL AWARDS PILOT. Consultative Draft Module Descriptor. Relational Database

5.5 Copyright 2011 Pearson Education, Inc. publishing as Prentice Hall. Figure 5-2

Physical Database Design Process. Physical Database Design Process. Major Inputs to Physical Database. Components of Physical Database Design

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

DATABASE MANAGEMENT SYSTEMS. Question Bank:

IT2305 Database Systems I (Compulsory)

1. INTRODUCTION TO RDBMS

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Data Modelling and E-R Diagrams

Database Management. Technology Briefing. Modern organizations are said to be drowning in data but starving for information p.

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

- Eliminating redundant data - Ensuring data dependencies makes sense. ie:- data is stored logically

The process of database development. Logical model: relational DBMS. Relation

Introduction to Databases

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file?

Databases and Information Management

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Basic Concepts of Database Systems

n Assignment 4 n Due Thursday 2/19 n Business paper draft n Due Tuesday 2/24 n Database Assignment 2 posted n Due Thursday 2/26

DATABASE INTRODUCTION

Database Design Methodology

SQL, PL/SQL FALL Semester 2013

Types & Uses of Databases

Topic: Relationships in ER Diagram and Relationships in MS Access

Fundamentals of Database Design

Core Syllabus. Version 2.6 B BUILD KNOWLEDGE AREA: DEVELOPMENT AND IMPLEMENTATION OF INFORMATION SYSTEMS. June 2006

Benefits of Normalisation in a Data Base - Part 1

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives

7. Databases and Database Management Systems

Lecture 6. SQL, Logical DB Design

Foundations of Business Intelligence: Databases and Information Management

Chapter 2. Data Model. Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel

Foundations of Business Intelligence: Databases and Information Management

Lesson 8: Introduction to Databases E-R Data Modeling

Database Concepts II. Top down V Bottom up database design. database design (Cont) 3/22/2010. Chapter 4

Lecture Notes INFORMATION RESOURCES

Relational Database Basics Review

BCA. Database Management System

Higher National Unit specification: general information. Relational Database Management Systems

Course: CSC 222 Database Design and Management I (3 credits Compulsory)

Chapter 14: Databases and Database Management Systems

Overview. Physical Database Design. Modern Database Management McFadden/Hoffer Chapter 7. Database Management Systems Ramakrishnan Chapter 16

Database Management System

DATABASE SYSTEMS. Chapter 7 Normalisation

SQL Server. 1. What is RDBMS?

Chapter 6 FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Learning Objectives

Foundations of Information Management

G Barnaby Electronics Ltd case Study - Comparison of Entity-Relationship and Normalisation Database Designs

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Course MIS. Foundations of Business Intelligence

Conventional Files versus the Database. Files versus Database. Pros and Cons of Conventional Files. Pros and Cons of Databases. Fields (continued)

Data Hierarchy. Traditional File based Approach. Hierarchy of Data for a Computer-Based File

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1

Release: 1. ICADBS502A Design a database

Relational Database Concepts

Databases and BigData

10. Creating and Maintaining Geographic Databases. Learning objectives. Keywords and concepts. Overview. Definitions

SQA Higher Information Systems Unit 2: Relational Database Systems

Introduction to normalization. Introduction to normalization

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst

Relational Databases. Christopher Simpkins

Foundations of Business Intelligence: Databases and Information Management

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Database Design and Normalization

Study Notes for DB Design and Management Exam 1 (Chapters 1-2-3) record A collection of related (logically connected) fields.

Databases in Engineering / Lab-1 (MS-Access/SQL)

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

Database Design Methodology

Topics. Database Essential Concepts. What s s a Good Database System? Using Database Software. Using Database Software. Types of Database Programs

Alexander Nikov. 5. Database Systems and Managing Data Resources. Learning Objectives. RR Donnelley Tries to Master Its Data

Designing a Database Schema

C HAPTER 4 INTRODUCTION. Relational Databases FILE VS. DATABASES FILE VS. DATABASES

Databases and DBMS. What is a Database?

Concepts of Database Management Seventh Edition. Chapter 7 DBMS Functions

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: DATABASE MANAGEMENT (Code: ) Information Technology

Concepts Design Basics Command-line MySQL Security Loophole

1. Relational database accesses data in a sequential form. (Figures 7.1, 7.2)

Introduction. Chapter 1. Introducing the Database. Data vs. Information

A brief overview of developing a conceptual data model as the first step in creating a relational database.

Optimum Database Design: Using Normal Forms and Ensuring Data Integrity. by Patrick Crever, Relational Database Programmer, Synergex

How To Write A Diagram

AS LEVEL Computer Application Databases

Normalisation to 3NF. Database Systems Lecture 11 Natasha Alechina

Access Database Design

Chapter 13 File and Database Systems

Chapter 13 File and Database Systems

DATABASE NORMALIZATION

DATABASE MANAGEMENT SYSTEM

Chapter 12 Databases, Controls, and Security

Transcription:

Introduction to Computing Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn

Databases

The Hierarchy of Data

Keys and Attributes

The Traditional Approach To Data Management

Database A collection of data, generally related to some subject or topic area and structured so as to allow relationships to be established between separate data items according to the various needs of users G. Knott & N. Waites, Computing 3 rd edition

Database Approach

Traditional Files vs. Databases: Pros and Cons Traditional File Advantages Simplicity Efficiency Customization Database Advantages Reduced data redundancy Application/data independence Better control Flexibility Disadvantages of Database High Cost Need specialized staff Increase vulnerability

Database Management Systems (DBMS) Databases are usually managed by DBMS DBMS: A collection of programs that controls and prevents accidental or deliberate corruption of data by other application programs Functions of DBMS Store, query and update data Manage transaction Control concurrent access to database Maintain data consistency and integrity

Types of Databases Hierarchical (tree) Network Relational

Hierarchical Database Model

Network Database Model

Relational Database Model

Relational Models Describe data using a standard tabular format with all data elements placed in twodimensional tables, called relations, that are the logical equivalent of files. Domain Selecting Projecting Joining

Linking Database Tables to Answer an Inquiry

Keys Smallest set of attributes can be used to identify a row in a table Single key: composed of only one attribute Composite key: composed of two or more attributes A table can have many keys Primary key: a selected key Candidate keys: other keys, except primary key

Foreign Keys If a table uses the primary key of another table as attribute to refer to a row in the other table, the attribute is called referential key or foreign key.

Primary and Foreign Keys Primary Key Foreign Key (implements 1:N relationship between customer and order) Combined, these are a composite primary key (uniquely identifies the order line) individually they are foreign keys (implement M:N relationship between order and product)

Database Design and Construction

Data Modelling To analyse and model the logical structures and relationships between data items To assist the data design process Entity Relationship Model is commonly used as a data modelling tool

Entity-Relationship Diagram for a Customer Ordering Database

Entity Relationship Model Entities Objects of interest or relevant to the organisation, eg. Customer, stock Attributes Properties of an entity which are identified as of interest Relationships The relationship between entities Relationship types: One-to-one One-to-many Many-to-many

Database Design Convert entity relationship model to relational model Convert entities into tables Identify keys and attributes Create referential keys (foreign keys) for relationships Decide data types and length for attributes

Data Normalisation A step-by-step process for analysing data into its constituent entities and attributes To improve database efficiency and to maintain data consistency and integrity Commonly, three normal forms are used: First normal form (1NF) Second normal form (2NF) Third normal form (3NF)

Database Construction Use tools, eg. MS Access Use Structured Query Language (SQL) Data Definition Language for defining database and database tables Commands: create database, create table, alter table, drop table, etc. Data Manipulation Language For manipulating the data within data Commands: select, insert, update and delete

Distributed Databases In distributed database system, the database is subdivided over multiple computer systems but appear to users as a single database Considerations Distribution transparency Transaction transparency Integrity must be maintained across databases

Pros and Cons Advantages Reflect organisational structure Local autonomy Improve availability and performance Modularity Disadvantages Complexity Security Difficult to maintain integrity