Introduction Objectives of the Lecture : To consider “What is a Database ?” To consider “What is a Relational Database ?” i.e. what is a “relation”, and.

Slides:



Advertisements
Similar presentations
Organisation Of Data (1) Database Theory
Advertisements

Database Modelling Lecture 1: Introduction to Databases Akhtar Ali 25 August
Technology Guide 3 Data and Database T3-1. IT for Management Prof. Efraim Turban T3-2 File Management Hierarchy of data for a computer-based file Record.
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Lecture-7/ T. Nouf Almujally
1 Basic DB Terms Data: Meaningful facts, text, graphics, images, sound, video segments –A collection of individual responses from a marketing research.
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
Introduction to Databases
Introduction to Databases Transparencies
1 Lecture 31 Introduction to Databases I Overview  Objectives of this lecture  History and Evolution of Databases  Basic Terms in Database and definitions.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
WFM-6103: Hydrologic Information System (HIS) Akm Saiful Islam Lecture-5: Database Management System April-October, 2006 Institute of Water and Flood Management.
M1G Introduction to Database Development 1. Databases and Database Design.
Database Features Lecture 2. Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
Database Design and Introduction to SQL
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
Database Management System Lecture 3 Models of Database Management Systems.
Introduction. 
By: M.Nadeem Akhtar1 The Data Base Management System (DBMS) Ch # 09.
Module Title? DBMS Introduction to Database Management System.
Section 1.1: Slide 1 of 24 Introduction to Relational Databases.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
1 DATABASES & DATABASE MANAGEMENT SYSTEMS (DBMS). MS ACCESS What is a database Database terms DB constructing stages DB models Relational model Normal.
Introduction to SQL Steve Perry
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Introduction to Database Systems
Database Management System (DBMS)
CS 474 Database Design and Application Terminology Jan 11, 2000.
Databases and Database Management Systems
Relational Databases. Welcome to the module How the module is organized and assessed What YOU need to do to pass this module Database Fundamentals Summary.
Lecture 1 - Introduction Databases & module Emma-Jane Phillips Pandon 122.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
© 2007 by Prentice Hall 1 Introduction to databases.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
The Data in a Relation To consider atomic data in relations; To consider data types in a relation; To consider missing data & NULLs in relations. Objectives.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Amendments & Transactions Objectives of the Lecture : To consider amendments to a relation; To consider transactions in SQL.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
FEN Introduction to the database field:  Applications, concepts and terminology Seminar: Introduction to relational databases.
COMU114: Introduction to Database Development 1. Databases and Database Design.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Data resource management
Topics Related to Attribute Values Objectives of the Lecture : To consider sorting relations by attribute values. To consider Triggers and their use for.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Insert & Delete Objectives of the Lecture : To consider the insertion of tuples into a relation; To consider the deletion of tuples from a relation; To.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
Introduction to Database Programming with Python Gary Stewart
( ) 1 Chapter # 8 How Data is stored DATABASE.
Tools for Memory: Database Management Systems
Introduction to Database Management System
Basic Concepts in Data Management
Chapter 2 Database Environment.
Database.
Database Management Systems
DATABASE TECHNOLOGIES
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:

Introduction Objectives of the Lecture : To consider “What is a Database ?” To consider “What is a Relational Database ?” i.e. what is a “relation”, and therefore what differentiates a relational database from any other kind of database.

What is a Database ? Definition : “A collection of data that is permanently stored on a computer”. In a database we should be able to : l have different types of data in the collection; l record relationships between different data items; l have varying sizes of data collections to suit our needs. We need to be able to : l insert new data, delete old data, and amend existing data in the collection; l retrieve data from the collection; l manage the collection so that it can be permanently stored in the face of various hazards that would otherwise corrupt or lose data in it.

Permanent Data Storage By “permanent” is meant that once data is put into the computer, it stays there until someone explicitly removes it, or until the computer is damaged or broken and this causes the data to be lost. The data is not lost when the computer is switched off or the database is not used for a long time. A computer has 2 classes of data storage : l Random Access Memory (= RAM). This is used by the computer’s Central Processing Unit (= CPU) to temporarily hold data that the CPU is processing. l Backing Store. This is used to store data permanently. Typically magnetic discs are used for this purpose, although other types of storage device, e.g. compact discs and magnetic tapes, are also used. Thus the database invariably uses the backing store to make the data storage permanent.

Different Types of Data l Numbers l Dates l Audio l Videos l Text l Pictures l Maps l etc. 1, -999, January 2004 ‘Janet & John’ To store useful information, many types may be needed together. Example : recording observations of a species of bird. Number of birds observed, textual description of characteristics, dates of observations, map of migration routes, pictures of birds, audio recording of bird calls, video of flight. There are many kinds or types of data, such as :

Relationships Between Data In practice, we are not interested in just isolated items of data. We also want to know the relationships between the data items. Example : species of bird observations It is important to know which bird numbers, descriptions, etc relate to which bird species. It may also be useful to know which bird species have similar migration routes. All sorts of relationships are possible : some essential to make sense of data, some useful for different purposes.

Quantities of Data Amounts of data may be large or small: l Example (small) : Names and addresses of members of a golf club (say 500 members). l Example (large) : Electricity company stores all customers’ account details (say name & address, a/c no., meter reading, amount owed, payment method, …. ; 1,000,000 customers). l Example (very large) : Supermarket stores customer purchase details for analysis (say average 10 purchases × 1000 customers × 400 stores × 355 days × 5 years = 7.1 billion purchase details).

Computerised Databases What is the benefit of a computerised database (= DB) compared to a manual paper-based collection of data ? l Compact. Less bulky than filing cabinets. l Speedy. Computer can retrieve and change data faster than a human being. l Less drudgery. Removes tedium. l Current. Easier to ensure data is up-to-date. Often databases are shared by several/many users. Then there are further benefits : l Consistency. All users have the same data. l Centralised management. The data collection can be properly managed on behalf of the whole organisation. Sharing consistent and well-managed data is much easier to achieve if the database is computerised.

Database Management Systems l Need special software to manage the DB if the benefits are to be obtained. l Don’t want to have to write our own computer programs to do this. Therefore buy a Database Management System (= a DBMS). A DBMS should provide the means to : l change the DB contents to keep them up-to-date; l find and retrieve data from the DB; l protect the data from accidents and intruders; l store it in an efficient way on the computer.

What is a Relational DB ? Definition : “A DB in which all the data is stored in relations”. A relation is a simple logical structure which contains related data (hence the name “relation”). It can be pictured as a table of data M-S S M D 8M EName Smith Mitchell Robson 8Blake ENo E3 E5 E1 4E Sal ,500 21,000 32, ,000 Example : A relation storing the employee numbers (= ENo), employee names (= EName), marital statuses (= M-S), and salaries (= Sal) of 4 employees. Row data is related because it all refers to the same employee. The rows are related because they all relate to employees.

A Relation The example relation has4 attributes, depicted as columns 4 tuples, depicted as rows M-S S M D 8M EName Smith Mitchell Robson 8Blake ENo E3 E5 E1 4E Sal ,500 21,000 32, ,000 As relations are just structures, they can hold any kind of data. So they can hold all the different kinds of data mentioned earlier, and more besides, without limit.

Relational Databases l Relations themselves are based on simple mathematical principles. l Relations can be manipulated by users in ways that are conceptually simple. l A relational DB is perceived and used as a collection of relations. l The relational DBMS manages the physical processing of data so that the user doesn‘t need to know what underlying computer processing goes on and merely perceives things in terms of relations.

Importance of Relational DBMSs l Because relational databases are built on sound theoretical mathematical principles, the theory is very practical. l It makes relational databases easy to learn and use. l Nevertheless relational databases can be very powerful and flexible. Therefore relational databases : l are the most common type of database on the market (over 90% share); l are extremely important in practice. Commercial relational DBMSs usually use a database programming language called SQL. (Thus sometimes they may be called SQL DBMSs).

Terminology l Because relations are usually depicted as tables, the word table is used in SQL instead of relation. l Consequently, as tables have columns and rows, the following tabular names are used in SQL (and often more generally) instead : tableinstead ofrelation columninstead ofattribute rowinstead oftuple Note 1 : some relations are better represented as graphs or networks. Note 2 : don’t confuse a relation with its representation.

Relational Implementations Principles Graphical Text QBE SQL Oracle MS Access MS SQL Server Calculus Algebra Domain Tuple RAQUEL IBM’s DB2 Sybase Ingres

Relational Standards l QBE and relational algebra have not been standardised. l SQL has been standardised. Later standards include additions to SQL compared to earlier standards. l The SQL standards do not adhere completely to relational principles. l Vendors’ SQL implementations often don’t adhere completely to SQL standards, and so are even more ad hoc. l This course uses Oracle SQL, because it is popular in the database market, but it does not adhere completely to the SQL standards.

Other Data Models Hierarchical : data items (= facts) are arranged in a hierarchical structure. Codasyl/Network : data items are arranged in a network structure. Object-oriented : data items (= facts) are considered as : objects containing data, with their own ways of handling their internal data, usually arranged in a network structure. There have been databases that used other data models :-