LECTURE 33: Database Introduction

Slides:



Advertisements
Similar presentations
Database Fundamentals
Advertisements

Chapter 10: Designing Databases
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Introduction to Databases Transparencies
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Al-Bahra bin Ladjamuddin.B POSTGRADUATE PROGRAM (MTI) - STMIK RAHARJA Chapter-1.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Introduction to Database Systems
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
ECE 8443 – Pattern Recognition ECE 3822 – Software Tools For Engineers Topics: Definitions and Terminology Abstraction Schema Tables Types of Databases.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Database revision.
Database Concepts Track 3: Managing Information using Database.
Chapter 3: Relational Databases
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Overview Relational Database and SQL Session 2 Matakuliah: Web Database Tahun: 2008.
Fundamental of Database Systems
COP Introduction to Database Structures
Introduction to Databases Transparencies
Introduction to Databases Transparencies
Introduction to Databases
Databases and DBMSs Todd S. Bacastow January
Introduction to DBMS Purpose of Database Systems View of Data
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Datab ase Systems Week 1 by Zohaib Jan.
Outline Types of Databases and Database Applications Basic Definitions
GO! with Microsoft Office 2016
Chapter 2 Database Environment.
Databases Chapter 16.
Database Management:.
Databases and Database Management Systems Chapter 9
Introduction to Databases Transparencies
Introduction to Databases
GO! with Microsoft Access 2016
Introduction to Databases
Chapter 4 Relational Databases
Database Management  .
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
What is a Database and Why Use One?
Introduction to Database Management System
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Database Fundamentals
Database.
File Systems and Databases
LECTURE 34: Database Introduction
Introduction to Databases
MANAGING DATA RESOURCES
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Databases
Database Design Hacettepe University
UNIT-I Introduction to Database Management Systems
Introduction to Databases Transparencies
Chapter 2 Database Environment Pearson Education © 2014.
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
Chapter 2 Database Environment Pearson Education © 2009.
DATABASE Purpose of database
Chapter 2 Database Environment Pearson Education © 2009.
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

LECTURE 33: Database Introduction Topics: Definitions and Terminology Abstraction Schema Tables Types of Databases Resources: YouTube: Introduction LM: Database Concepts Dsoergel: Fundamentals

Introduction to Databases

What Is A Database? The word database is commonly used to refer to any of the following: your personal address book in a Word document a collection of Word documents a collection of Excel Spreadsheets a very large flat file on which you run some statistical analysis functions data collected, maintained, and used in airline reservation data used to support the launch of a space shuttle

Models of Reality DML DATABASE SYSTEM REALITY structures processes DDL A database is a model of structures of reality The use of a database reflect processes of reality A database system is a software system which supports the definition and use of a database DDL: Data Definition Language DML: Data Manipulation Language

Use a DBMS when this is important: When To Use A Database? Use a DBMS when this is important: Do not use a DBMS when: persistent storage of data centralized control of data control of redundancy control of consistency and integrity multiple user support sharing of data data documentation data independence control of access and security backup and recovery the initial investment in hardware, software, and training is too high the generality a DBMS provides is not needed the overhead for security, concurrency control, and recovery is too high data and applications are simple and stable real-time requirements cannot be met by it multiple user access is not needed

Abstraction It is very important that the language used for data representation supports abstraction. Three kinds of abstraction: Classification Aggregation Generalization

Tom Ed Nick ... Liz Joe Louise Classification In a classification we form a concept in a way which allows us to decide whether or not a given phenomena is a member of the extension of the concept. CUSTOMER Tom Ed Nick ... Liz Joe Louise

AIRPLANE COCKPIT WING ENGINE Aggregation In an aggregation we form a concept from existing concepts. The phenomena that are members of the new concept’s extension are composed of phenomena from the extensions of the existing concepts AIRPLANE COCKPIT WING ENGINE

CUSTOMER ECONOMY CLASS 1ST CLASS BUSINESS CLASS Generalization In a generalization we form a new concept by emphasizing common aspects of existing concepts, leaving out special aspects CUSTOMER ECONOMY CLASS 1ST CLASS BUSINESS CLASS

Subclasses May Overlap CUSTOMER 1STCLASS BUSINESS CLASS Subclasses may have multiple superclasses: MOTORIZED VEHICLES AIRBORNE VEHICLES TRUCKS HELICOPTERS GLIDERS

Database Schema Tables Indexes Procedures Views Constraints Schema Owner schema objects

Tables A table is the primary unit of physical storage for data in a database. Usually a database contains more than one table. A database can have multiple tables: Publishers Books Customers Authors Inventory Orders

Tables Customers

Tables Field (Column) Customers a field

Database Schema Record (Row) Customers a record

Tables Primary Key Customers primary key field Primary key is a unique identifier of records in a table. Primary key values may be generated manually or automatically.

A primary key can consist of more than one field. Tables Primary Key Roles (Performances) primary key fields A primary key can consist of more than one field.

Tables Foreign Key Directors Movies primary key field parent table relationship child table Movies foreign key field

More Terminology Types of Relationships: one-to-one, one-to-many, many-to-many Data Types: Alphanumeric (Text, Memo), Numeric (Number, Currency, etc.), Date/Time, Boolean (Yes/No) Entity: An entity is a business object that represents a group, or category of data. Instance: A single, specific occurrence of an entity is an instance. Other terms for an instance are record and tuple. Attribute: An attribute is a sub-group of information within an entity. Relationship: A relationship is a link that relates two entities that share one or more attributes.

OO Design vs. Database Design Object-Oriented Design: Database Design: Class  Entity (Table) Object  Record Attribute  Attribute (Field) Association  Relationship …

Database Environments and Types Mainframe Client/Server Internet-based Database Types: Flat-file Hierarchical Network Relational Object-oriented Object-relational

Summary Flat-file Hierarchical Network Relational Object-oriented Object-relational