Database management system (DBMS)

Slides:



Advertisements
Similar presentations
Chapter 1: The Database Environment
Advertisements

Relational Database and Data Modeling
Chapter 10: Designing Databases
Management Information Systems, Sixth Edition
Chapter 1: The Database Environment
ETEC 100 Information Technology
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 1: The Database Environment
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Management COP4540, SCS, FIU An Introduction to database system.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
ASP.NET Programming with C# and SQL Server First Edition
Module Title? DBMS Introduction to Database Management System.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Architecture for a Database System
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Introduction to Database Programming with Python Gary Stewart
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Fundamental of Database Systems
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Understanding Data Storage
Client/Server Databases and the Oracle 10g Relational Database
An Introduction to database system
Databases Chapter 16.
Database Management:.
Information Systems Today: Managing in the Digital World
Fundamentals & Ethics of Information Systems IS 201
Chapter 4 Relational Databases
CS1222 Using Relational Databases and SQL
Database Management  .
Chapter 1: The Database Environment
Tools for Memory: Database Management Systems
Databases and Information Management
What is a Database and Why Use One?
MANAGING DATA RESOURCES
What Are Databases? Organized by Dr. Farrokh Alemi PhD
Chapter 1: The Database Environment
Structured Query Language
Data base management system dbms
Databases and Information Management
CHAPTER 1: THE DATABASE ENVIRONMENT AND DEVELOPMENT PROCESS
Chapter 1: The Database Environment
Chapter 1: The Database Environment
The Database Environment
Chapter 1: The Database Environment
Accounting Information Systems 9th Edition
Database Design Hacettepe University
Contents Preface I Introduction Lesson Objectives I-2
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
CS3220 Web and Internet Programming SQL and MySQL
DATABASE TECHNOLOGIES
Chapter 1: The Database Environment
Chapter 3 Database Management
CS3220 Web and Internet Programming SQL and MySQL
Database & Information Systems
CS1222 Using Relational Databases and SQL
The Database Environment
Course Instructor: Supriya Gupta Asstt. Prof
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
CS1222 Using Relational Databases and SQL
Geographic Information Systems
Presentation transcript:

Database management system (DBMS) General Concepts Database Organized collection of logically related data Data Known facts Types: text, figures, graphics, images, sound, videos… Database management system (DBMS) Software package for defining and managing a database

Usually a database contains more than one table. A table is the primary unit of physical storage for data in a database. Usually a database contains more than one table.

Field Record Primary key

Databases and DBMS Metadata Data that describes the properties or characteristics of other data Allows database designers and users to understand the meaning of the data Name Type Size Description REL_NUM Integer 2 Relevé number R_LOCATION Text 255 Location R_SURV_DATE Date/Time 8 Date R_SURVEYORS 50 Initials of surveyors R_LATITUDE Double Northing, UTM R_LONGITUDE Easting, UTM R_PHOTO_N 10 Aerial photo # R_TOPOG_MAP 20 Topographic map

Relational Database Data are organized into two or more tables Relationships between entities are represented by values stored in the columns of the corresponding tables (keys) Schema: a view that inter-relates tables to each other Accessible through Standard Query Language (SQL) Query: set of instructions to a database “engine” to retrieve, sort and format returning data

Schema

Schema

SQL Structured Query Language SQL statements are used to retrieve and update data in a database Syntax for executing queries, updating, inserting, and deleting records. SELECT - extracts data from one or more table INSERT INTO - inserts new data UPDATE - updates data DELETE FROM - deletes data

ON tab_releve.REL_NUM = tab_site.REL_NUM Example SELECT tab_releve.* FROM tab_releve INNER JOIN tab_site ON tab_releve.REL_NUM = tab_site.REL_NUM WHERE tab_site.SG_ELEVATION > 2000 SELECT tab_releve.* FROM tab_releve INNER JOIN tab_site ON tab_releve.REL_NUM = tab_site.REL_NUM WHERE tab_site.SG_ELEVATION > 2000

DBMS Software package for defining and managing a database (aka DB “engine”) Examples: Proprietary: MS SQL Server, DB2, Oracle, Sybase Open source: MySql, PostgreSQL

What is Microsoft Access? “It is a Database” No! Microsoft Access is an application development tool, not a Database Management System (DBMS) Access has some DBMS-like features Strictly, these are the features of a software component called Jet, which happens to be bundled with Access and other Microsoft products

Increased productivity of application development DBMS Advantages Enforced standards Increased productivity of application development centralization availability Minimal data redundancy Improved data consistency and quality access control transaction control data independence

A method for organizing data elements into tables Normalization A method for organizing data elements into tables Done in order to avoid Duplication of data Insert anomaly Delete anomaly Update anomaly

Database normalization Inconsistency Name Country Sport1 Fee1 Sport2 Fee2 Sport3 Fee3 Total Amado Adalberto LOPEZ BAUTISTA Guatemala Football 35 Golf 80   115 Sabil Damiao MANDALA Mozambique Swimming 60 Tennis 50 110 Ahmed Mohamed Harb RABIA Egypt Basket 30 Marta RONCHI Italy Alfred Kouly TINE Senegal Hockey 75 185 Cinzia LANFREDI SOFIA Redundancy Ambiguity

Database normalization Name Country Sport1 Fee1 Sport2 Fee2 Sport3 Fee3 Total Amado Adalberto LOPEZ BAUTISTA Guatemala Football 35 Golf 80   115 Sabil Damiao MANDALA Mozambique Swimming 60 Tennis 50 110 Ahmed Mohamed Harb RABIA Egypt Basket 30 Marta RONCHI Italy Alfred Kouly TINE Senegal Hockey 75 185 Cinzia LANFREDI SOFIA Fee3 Sport3 Fee2 Sport2 Fee1 Sport1 Country Name Family Name Second Name First Name Unpack the data Reduce elements to non-decomposable (atomic) values

Database normalization First Name Second Name Family Name Country Sport1 Fee1 Sport2 Fee2 Sport3 Fee3 Total Amado Adalberto LOPEZ BAUTISTA Guatemala Football 35 Golf 80   115 Sabil Damiao MANDALA Mozambique Swimming 60 Tennis 50 110 Ahmed Mohamed Harb RABIA Egypt Basket 30 Marta RONCHI Italy Alfred Kouly TINE Senegal Hockey 75 185 Cinzia LANFREDI SOFIA First Name Second Name Family Name Country Sport1 Fee1 Sport2 Fee2 Sport3 Fee3 Total Sport Fee First Normal Form (1NF) Eliminate duplicative columns from the same table. Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key).

Database normalization Id_student First Name Second Name Family Name Country Total 1 Amado Adalberto LOPEZ BAUTISTA Guatemala 115 2 Sabil Damiao MANDALA Mozambique 110 3 Ahmed Mohamed Harb RABIA Egypt 80 4 Marta   RONCHI Italy 30 5 Alfred Kouly TINE Senegal 185 6 Cinzia LANFREDI SOFIA Id_student Id_sport Id_sport Sport Fee 1 Football 30 2 Swimming 60 3 Tennis 50 4 Golf 80 5 Basket 6 Hockey 75 Second Normal Form (2NF) Remove subsets of data that apply to multiple rows of a table and place them in separate tables. Create relationships between these new tables and their predecessors through the use of foreign keys.

Database normalization Id_student First Name Second Name Family Name Country Total 1 Amado Adalberto LOPEZ BAUTISTA 115 2 Sabil Damiao MANDALA 110 3 Ahmed Mohamed Harb RABIA 80 4 Marta   RONCHI 30 5 Alfred Kouly TINE 185 6 Cinzia LANFREDI SOFIA Id_student Id_sport Id_sport Sport Fee 1 Football 30 2 Swimming 60 3 Tennis 50 4 Golf 80 5 Basket 6 Hockey 75 Id_country Country 1 Guatemala 2 Mozambique 3 Egypt 4 Italy 5 Senegal Third Normal Form (3NF) Remove columns that are not fully dependent upon the primary key.

Database normalization Id_student First Name Second Name Family Name Country 1 Amado Adalberto LOPEZ BAUTISTA 2 Sabil Damiao MANDALA 3 Ahmed Mohamed Harb RABIA 4 Marta   RONCHI 5 Alfred Kouly TINE 6 Cinzia LANFREDI SOFIA Id_student Id_sport Id_sport Sport Fee 1 Football 30 2 Swimming 60 3 Tennis 50 4 Golf 80 5 Basket 6 Hockey 75 Id_country Country 1 Guatemala 2 Mozambique 3 Egypt 4 Italy 5 Senegal

Increased productivity of application development DBMS Advantages Enforced standards Increased productivity of application development Minimal data redundancy Improved data consistency and quality Program-data independence

Increased productivity of application development DBMS Advantages Enforced standards Increased productivity of application development Minimal data redundancy Improved data consistency and quality Program-data independence Improved accessibility and data sharing

PostgreSQL PostgreSQL is an object-relational database management system (DBMS) based on POSTGRES developed at the University of California at Berkeley Computer Science Department. POSTGRES pioneered many concepts that only became available in some commercial database systems much later. PostgreSQL is an open-source descendant of this original Berkeley code. It supports a large part of the SQL standard, offers many modern features and can be extended by the user in many ways. The official manual is more than 2700 pages...

PostgreSQL A server process, which manages the database files, accepts connections to the database from client applications, and performs database actions on behalf of the clients. The database server program is called postgres. The user’s client (frontend) application that wants to perform database operations. Client applications can be very diverse in nature: a client could be a text-oriented tool, a graphical application, a web server that accesses the database to display web pages, or a specialized database maintenance tool. Some client applications are supplied with the PostgreSQL distribution; most are developed by users.

http://db-engines.com/en/