Databases and Database Management Systems

Slides:



Advertisements
Similar presentations
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
Advertisements

Chapter 1: The Database Environment
BASIC SKILLS AND TOOLS USING ACCESS
Relational Database and Data Modeling
Database Systems: Design, Implementation, and Management
Information Systems Today: Managing in the Digital World
Microsoft Access.
Chapter 10: Designing Databases
Chapter 6 Data Design.
Access Tables 1. Creating a Table Design View Define each field and its properties Data Sheet View Essentially spreadsheet Enter fields You must go to.
Database System Concepts and Architecture
Introduction to Databases
Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Databases and Database Management Systems
Management Information Systems, 10/e
Lecture-7/ T. Nouf Almujally
Management Information Systems, Sixth Edition
10/25/2001Database Management -- R. Larson Data Administration and Database Administration University of California, Berkeley School of Information Management.
Client/Server Databases and the Oracle 10g Relational Database
Database Software File Management Systems Database Management Systems.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 10 Managing a Database.
Database Management: Getting Data Together Chapter 14.
Living in a Digital World Discovering Computers 2010.
BUSINESS DRIVEN TECHNOLOGY
Chapter 4 Database Management Systems. Chapter 4Slide 2 What is a Database Management System (DBMS)?  Database An organized collection of related data.
Databases and Database Management Systems
Databases Creating databases to store information.
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Discovering Computers Fundamentals, 2012 Edition Your Interactive Guide to the Digital World.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe the qualities of valuable information.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Storing Organizational Information - Databases
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
Today and Tomorrow 12 th Edition Understanding Computers Chapter 14: Databases and Database Management Systems.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Data resource management
14 Databases and Database Management Systems CHAPTER
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
1 Chapter 9 Database Management. Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Client/Server Databases and the Oracle 10g Relational Database
Chapter Ten Managing a Database.
The Client/Server Database Environment
Basic Concepts in Data Management
Chapter 9 Database and Information Management.
Understanding Computers
MANAGING DATA RESOURCES
Database Management Systems
Presentation transcript:

Databases and Database Management Systems Chapter 14

Overview This chapter covers: What a database is, the individuals who use them, and how databases evolved Important database concepts and characteristics Database classifications and models How to create and use a relational database How databases are used on the Web

What Is a Database? A collection of related data stored in a manner so it can be retrieved as needed Database management system (DBMS): Used to create, maintain, and access databases DBMSs include: Personal Microsoft Access, Corel Paradox Lotus Approach Enterprise databases Oracle Database IBM DB2 Microsoft SQL Server

Databases and the Web Databases are commonly used on the Web Information retrieval, e-commerce, dynamic Web pages (change based on user input), etc.

Databases and the Web How Web databases work Visitor makes request via a Web site Search form Logging on to personalize site Uploading user content Web server converts the request into a database query and passes it onto the database server, and then sends the results back to the visitor Middleware is used to connect two otherwise separate applications, such as a Web server and a database management system Commonly written as scripts JavaScript VB Script CGI scripts Active Server Pages (ASPs) PHP scripts

Databases and the Web

What Is a Database? A database typically consists of: Tables: Collection of related records Fields (columns): Single category of data to be stored in a database (name, telephone number, etc.) Records (rows): Collection of related fields in a database (all the fields for one customer, for example)

What Is a Database? Data hierarchy Database: Contains a group of related tables Tables: Collection of related records Records/rows: Groups of related fields Fields/columns: Hold single pieces of data Data: characters (letters, numbers, symbols)

What Is a Database? Primary key: Specific field that uniquely identifies the records in that table Used in a relational database to relate tables together Must be unique and a field that doesn’t change

Individuals involved with a DBMS Database administrators Responsible for managing the databases within an organization Database designers Design the database Database developers Create the database Database programmers Write the programs needed to access the database or tie the database to other programs Users Individuals who enter data, update data, and retrieve information out of the database 10

Data Concepts and Characteristics Entity: Something of importance to the organization Entities that the organization wants to store data about typically becomes a database table Attributes: Characteristics of an entity Typically become fields in the entity’s database table

Data Concepts and Characteristics Entity relationships: Describe an association between two or more entities One-to-one (1:1) entity relationships (not common) e.g. each store has a single manager One-to-many (1:M) entity relationships (most common) e.g. a supplier supplies more than one product to a company Many-to-many (M:N) entity relationships (requires a third table to tie the tables together) e.g. an order can contain multiple products and a product can appear on multiple orders

Data Concepts and Characteristics Designing Entities Understand the database Define the Entities These are usually nouns used in descriptions of the database Define the Relationships These are usually verb phrases used in descriptions of the database

Data Concepts and Characteristics Johnny’s Pizza serves the best pizza in town, and Johnny gets a lot of business. As orders come in, they are written down on paper, made, delivered, and the order paper is stuffed into a box. Johnny’s accountant wants Johnny to use a DBMS, so that maintaining the business records is easier. Here is some information to get started with: Johnny has lots of customers that order pizza’s – about 250 in all A customer can place many pizza orders – one guys orders pizza’s every Wednesday, Friday, and Sunday night.

Data Concepts and Characteristics Relational database: Data between tables is tied together (related) using a field that the tables have in common Common field is a PK In one table

The Relational Database Model Data organization: Arranging data for efficient retrieval Indexed organization uses an index to keep track of where data is stored

The Relational Database Model Direct organization Uses hashing algorithms to specify the exact storage location Location is based on primary key Algorithms should be designed to limit collisions Sometimes a combination of indexing and direct organization is used within a database system

Database Development Life Cycle Analysis How the database will be used Design What type of data it will contain Development Creation Implementation Testing, preparing for use Maintenance Keeping it running

The Relational Database Model Database Design Steps Analysis: How the database will be used Identify the purpose of the database Users - Determine the number of users, who they are Security – who has access and in what way Size - How large will the database be Availability – when will it be available to use

The Relational Database Model Database Design Steps Design: What type of data it will contain Determine the tables and fields Assign the fields to a table and reorganize as needed to minimize redundancy (normalization) Finalize the structure (primary keys, field properties, etc.)

The Relational Database Model Database Design Steps Design (continued): What type of data it will contain Determine the tables and fields Data definition: The process of describing the properties of data to be included in a database table During data definition, each field is assigned: Name (must be unique within the table) Data type (such as Text, Number, Currency, Date/Time) Description (optional description of the field) Properties (field size, format of the field, allowable range, if field is required, etc.) Finished specifications for a table become the table structure

The Relational Database Model Database Design Considerations Design (continued): Data dictionary: Contains all data definitions in a database Table structures Names, types and properties of each field Security information (passwords, etc.) Relationships between the tables in the database Current information about each table, such as the current number of records Rules which ensure that data being entered into the database does not violate any specified criteria

The Relational Database Model Database Development Steps Development: Creation of the database Create the database file Create the structure of each individual table (in Access, can be performed in either Design or Datasheet view) Enter data Existing data can be migrated to the new database New data can be added via form or the Design view Relate tables as needed

The Relational Database Model Database Development Considerations Development: (continued) Data integrity: The accuracy of data Quality of data input determines the quality of retrieved information Data validation: Ensuring that data entered into the database is valid Record validation rules: Checks all fields before changes to a record are saved Can be enforced on a per transaction basis so the entire transaction will fail if one part is invalid Database locking Prevents two individuals from changing the same data at the same time

The Relational Database Model Database Development Considerations Implementation: Testing and preparing for use Data security: Protecting data against destruction and misuse Protects against unauthorized access Database activity monitoring programs can be used to detect possible intrusions Should include strict backup and disaster-recovery procedures (disaster-recovery plan) Protects against data loss Data privacy: Growing concern because of the vast amounts of personal data stored in databases today

The Relational Database Model Database Maintenance Maintenance: keeping it running Data in tables can be edited as needed Table structures can be modified when needed Other possible modifications: Adding new indexes to speed up queries Deleting obsolete data Upgrading database software, installing patches Repairing/restoring data that has become corrupt Continuing to evaluate and improve security

Advantages and Disadvantages of the DBMS Approach Faster response time Lower storage requirements Easier to secure Increased data accuracy Disadvantages Increased vulnerability (backup is essential)

Database Classifications Single-user database system: Designed to be accessed by one user Multiuser database system: Designed to be accessed by multiple users (most business databases today) Client-server database systems: Has both clients (front end) and at least one database server (back end)

Database Classifications N-tier database system: Has more than two tiers Middle tiers contain one or more programs stored on one or more computers Program code is separate from the database Provides flexibility and scalability

Database Classifications Centralized database system: Database is located on a single computer, such as a server or mainframe Distributed database system: Data is physically divided among several computers connected by a network, but the database logically looks like it is a single database Disk-based databases: Data is stored on hard drives In-memory databases (IMDBs): Data is stored in main memory Faster, used when performance is critical Good backup procedures are essential

Database Models Hierarchical & Network Relational database management system (RDBMS) Data is organized in tables related by common fields Most widely used database model today