Section 1.1: Slide 1 of 24 Introduction to Relational Databases.

Slides:



Advertisements
Similar presentations
Lecture-7/ T. Nouf Almujally
Advertisements

Database Concepts Lec. 5. What Is a Database? Data are unprocessed raw facts that include text, number, images, audio, and video. Information is processed.
Introduction to Databases
Introduction to Databases
Organizing Data & Information
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Introduction to Databases Transparencies
Chapter 1 INTRODUCTION TO DATABASE.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Discovering Computers Fundamentals, 2011 Edition Living in a Digital World.
WFM-6103: Hydrologic Information System (HIS) Akm Saiful Islam Lecture-5: Database Management System April-October, 2006 Institute of Water and Flood Management.
Databases Chapter 11.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Introduction to Databases
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.
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
Introduction to Data bases concepts
Database Design - Lecture 1
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Discovering Computers Fundamentals, 2012 Edition Your Interactive Guide to the Digital World.
Module Title? DBMS Introduction to Database Management System.
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.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
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.
Introduction: Databases and Database Users
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
Databases and Database Management Systems
Chapter Eight Database ( 資料庫 ) Applications and Implications.
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.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Accounting Information Systems 9 th Edition Marshall.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe the qualities of valuable information.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
DataBase Management Systems Introduction to Database Technology EAK 362/2 MIS LECTURE 4 PART 1.
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.
Chapter 4c, Database H Definition H Structure H Parts H Types.
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
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.
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
Database. Data Base A database is a collection of related data, and the software used in databases to store, organize and retrieve the data is called.
Database Systems Basic Data Management Concepts
Data resource management
Database revision.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
IT in Business Personal and PC Databases Lecture – 14.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Fall CSE330/CIS550: Introduction to Database Management Systems Prof. Susan Davidson Office: 278 Moore Office hours: TTh
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
Managing Data Resources File Organization and databases for business information systems.
Introduction to Databases Transparencies
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases
Tools for Memory: Database Management Systems
Basic Concepts in Data Management
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Introduction to Databases
Data Model.
Introduction to Databases
Introduction to Databases Transparencies
Presentation transcript:

Section 1.1: Slide 1 of 24 Introduction to Relational Databases

Section 1.1: Slide 2 of 24 Database: An Introduction l What is Data? l What is a Database/DBMS? l What is SQL? l Why Use Computers?

Section 1.1: Slide 3 of 24 Why Use Computers? l To do calculations. What computers were originally built to do. ‘Computer’ = ‘Calculator’. Examples: scientific calculations, decypher codes. l To ‘switch’ communication links. Examples: telephone exchanges, route computer data on networks. l To store data. Examples: names and addresses, electricity account details.

Section 1.1: Slide 4 of 24 What is Data ? l Numbers l Dates l Pictures l Videos l Text l Maps l Audio l etc. 1, -99, 1,035, January 2001 ‘A3*=<32’ Might wish to store all of these kinds of data about something. Example : 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.

Section 1.1: Slide 5 of 24 Logical Data and Physical Data Logical Data Character Field Record File Physical Data Bit Byte Word Block Area

Section 1.1: Slide 6 of 24 Logical Data NameTelRoom Hrs Black, Paul3637D100cmu55 Taylor, Ian3667P203cmu515 Bennet, Carol3384E202ciz90 Evans, Dave3667E200ciz810 Borthwick, Brenda4750E200ciz80 Jenkins, Haydn3643D314ciz515 Wooley, Adrian4726D314ciz65 NameTelRoom Hrs Black, Paul3637D100cmu55 Taylor, Ian3667P203cmu515 Bennet, Carol3384E202ciz90 Evans, Dave3667E200ciz810 Borthwick, Brenda4750E200ciz80 Jenkins, Haydn3643D314ciz515 Wooley, Adrian4726D314ciz65 NameTelRoom Hrs Black, Paul3637D100cmu55 Taylor, Ian3667P203cmu515 Bennet, Carol3384E202ciz90 Evans, Dave3667E200ciz810 Borthwick, Brenda4750E200ciz80 Jenkins, Haydn3643D314ciz515 Wooley, Adrian4726D314ciz65 NameTelRoom Hrs Black, Paul3637D100cmu55 Taylor, Ian3667P203cmu515 Bennet, Carol3384E202ciz90 Evans, Dave3667E200ciz810 Borthwick, Brenda4750E200ciz80 Jenkins, Haydn3643D314ciz515 Wooley, Adrian4726D314ciz65 NameTelRoom Hrs Black, Paul3637D100cmu55 Taylor, Ian3667P203cmu515 Bennet, Carol3384E202ciz90 Evans, Dave3667E200ciz810 Borthwick, Brenda4750E200ciz80 Jenkins, Haydn3643D314ciz515 Wooley, Adrian4726D314ciz65

Section 1.1: Slide 7 of 24 Relationships Between Data l Bird example showed that we store items of data (= facts). l Not just interested in isolated items of data. Want to know relationships between the data items. Example : species of bird Which bird numbers, descriptions, etc relate to which bird species ? Useful to know which birds have similar migration routes. l All sorts of relationships possible : some essential to make sense of data, some useful for different purposes.

Section 1.1: Slide 8 of 24 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).

Section 1.1: Slide 9 of 24 What is a Database ? Definition: “A collection of data that is permanently stored”. In a database we should be able to have : l data items of different types, l relationships between data items, l different sized data collections.

Section 1.1: Slide 10 of 24 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.

Section 1.1: Slide 11 of 24 A Shared Computerised Database Some 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.

Section 1.1: Slide 12 of 24 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.

Section 1.1: Slide 13 of 24 DBMS l DataBase Management System l A body of software which manages a database l Examples of commercial DBMSs l MS Access l Oracle l Foxpro l Each manages Relational Databases l Relational DBMSs

Section 1.1: Slide 14 of 24 DBMS In order to provide these facilities and obtain the benefits, a DBMS should provide the following : l A Data Description Language (= DDL). A means of telling the DBMS what sort of data to store. Example: For each species of bird, store the number of birds observed, a description of their characteristics,..... l A Data Manipulation Language (= DML). Has two tasks : l Manipulation : to specify the data of interest. Example: the migration route of the ‘great white swift’. l Action : what to do with the specified data. Example: retrieve it, only permit certain users to see it.

Section 1.1: Slide 15 of 24 DBMS A DBMS Manages: l Access l Everything to do with physical access to data Stored Database

Section 1.1: Slide 16 of 24 DBMS A DBMS Manages: l Security l Who has what sort of access: read, write, read/write Stored Database

Section 1.1: Slide 17 of 24 A DBMS Manages: l Integrity l Completeness l Consistency l Dealing with System Failure l Synchronisation l Multi-processing l Simultaneity

Section 1.1: Slide 18 of 24 Relational DBMS Why relational ? Because : l relational DBMSs are based on simple mathematical principles; l so they are easy to learn and use, and can be very powerful and flexible. Therefore : l they are the most common type of database (over 90% of the market); l they are very important in practice.

Section 1.1: Slide 19 of 24 What is SQL? l Structured Query Language l A Language for communicating with a Relational DBMS l... and a Data Manipulation Language (DML) l Provides a Data Definition Language (DDL)...

Section 1.1: Slide 20 of 24 Data Definition in SQL CREATE TABLE EMP ( EMP_NO CHAR(3), EMP_NAME CHAR(20), SALARY INTEGER); EMP NOEMP NAMESALARY E01Jim Jones24000 E02Jane Doe32000 E10Helen Smith INSERT INTO EMP VALUES(“E01”, “Jim Jones”,24000);

Section 1.1: Slide 21 of 24 Data Manipulation in SQL SELECT EMP_NAME,SALARY FROM EMP WHERE SALARY > ORDER BY SALARY DESCENDING; EMP NAMESALARY Helen Smith35000 Jane Doe32000

Section 1.1: Slide 22 of 24 Review Note the following key points from the introduction and ensure you focus on them in the following material : l The need for a DBMS to cope with different kinds of data, relationships between data, and different volumes of data. l The benefits of a computerised DB. l A DBMS should provide an effective DDL and DML, in order to provide an optimal way of storing data on a computer. Read Chapter 1 in the set text - Elmasri/Navathe, Fundamentals of Database Systems 2nd edition, Addison Wesley or Read Chapter 1 in the text – Date, An Introduction to Database Systems 7 th edition, Addison Wesley.

Section 1.1: Slide 23 of 24 Summary l Data l Physical Data l Logical Data l Database l A Definition l DBMS l Functions l SQL

Section 1.1: Slide 24 of 24 Exercises Here is an Exercise that you should try,Exercise based on the material covered in this topic. When you have performed the exercise, you will be given a solution to look at.