Introduction to Databases. Case Example: File based Processing Real Estate Agent’s office Property for sale or rent Potential Buyer/renter Staff/employees.

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Introduction to Databases
Introduction to Databases
1 Pertemuan 01 Pengantar tentang database Matakuliah: >/ > Tahun: > Versi: >
Introduction to Databases
1 Minggu 1, Pertemuan 1 Introduction to Database Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
Chapter 1 INTRODUCTION TO DATABASE.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
INTRODUCTION TO DATABASES
Chapter 1 Introduction to Databases
DBMS1 Database Management System (DBMS) Introductory Concepts Week-1.
Introduction to Databases
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Introduction to Databases and Database Languages
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Introduction to Database
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Introduction Chapter 1. Reference Book  Database Systems Thomas Connolly, Carolyn Begg, Anne Strachan Addison-Wesley 1999 ISBN:
Fundamental of Database (FCT 1083) Chapter 1: Concept of Databases.
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Sistem Basis Data (DATABASE) Siauw Yohanes Darmawan
Module Title? DBMS Introduction to Database Management System.
Chapter 2 CIS Sungchul Hong
Chapter 1 Introduction to Databases Pearson Education ©
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
Introduction: Databases and Database Users
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Databases and Database Management Systems
1 Chapter 1 Introduction to Databases Transparencies Last Updated: Pebruari 2010 By M. Arief Updated by RSO Feb 2011
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Introduction to Databases
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
Module 1: Database System
Introduction to Database AIT632 Chapter 1 Sungchul Hong.
MSIS 635 DATABASE MANAGEMNT Database Systems Thomas Connolly and Carolyn Begg Third Edition – 2002 – ©Addison Wesley.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
1 Chapter 1 Introduction to Databases Transparencies.
DATABASE MANAGEMENT SYSTEM By: YAMINI TRIPATHI. INTRODUCTION Consists - Collection of interrelated data - Set of programs to access those data Definition.
Introduction to Databases
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
Introduction to Databases Dr. Osama AL Rababah. Objectives In this capture you will learn: Some common uses of database systems. The characteristics of.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
What is Database Administration ?
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases
Introduction to Databases
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases Connolly and Begg
Tahun : <<2005>> Versi : <<1/1>>
Introduction to Databases
Introduction to Databases
Introduction to Databases
Data Base System Lecture 2: Introduction to Database
Introduction to Databases
Database System Architecture
Introduction to Databases
Introduction to Databases
Introduction to Databases
INTRODUCTION TO Databases
Introduction to Databases Transparencies
Introduction to Databases
Presentation transcript:

Introduction to Databases

Case Example: File based Processing Real Estate Agent’s office Property for sale or rent Potential Buyer/renter Staff/employees

Queries 3-bed room apts for sales? Flats within 3 miles of the city? Average price of house? Average rent for 2 BR flat? Total annual salary for staff?

Reports Expected monthly turnover of renters? This month’s turnover compare to the last month?

Files in Sales Dept Selling and renting of properties Property_for_rent (Pno, Street, Area, City, Pcode, Type, Rooms, Rent, Ono) Owner (Ono, Fname, Lname, Address, Tel_no, Pref_Type, Max_rent) Potential renters Renter (Rno, Fname, Lname, Address, Tel_No, Pref_Type, Max_rent)

Files in Contract Dept Lease(Lno, Pno, Rent, Payment, Deposit, paid, Start, Finish, Duration) Property_for_rent (Pno, Street, Area, City, Pcode, Rent) Renter (Rno, Fname, Lname, Address, Tel_No) Data entry File maintenance Reports generation

Another example Payroll Dept Staff_salary(Staff No, First Name, Last Name, Address, Date_of_Birth, Salary, National Insurance Number, Branch Number) Personnel Dept: Staff(Staff No, First Name, Last Name, Address, Telephone Number, Position, Date_of_Birth, Salary, National Insurance Number, Branch Number)

File Based Processing Sales Contracts Data entry and reports File handling routines File definition Sales application programs Contracts application programs

Limitations of File-Based Processing Separation and Isolation of data Duplication of data Data dependence Incompatibility of files Fixed queries/ proliferation of application programs

Database “A shared collection of logically related data (and a description of this data) designed to meet the information needs of an organization.”

Entity Relationship Diagram Staff Property_for _Rent Branch Owner Viewing Renter Takes Requests Has Owns Oversees IsAllocated

Parts of ER diagram Six entities (the rectangles): Branch, Staff, Property_for_Rent, Owner, Renter and Viewing. Six relationships (the diamonds): IsAllocated, Has, Overseas, Owns, Requests, and Takes

DBMS “ A software system that enables users to define, create and maintain the database and provides controlled access to this database.” Data definition Language (DDL): data types, structures and constraints on the data. Data Manipulation Language (DML): insert, update, delete, and retrieve data Query Language: general enquiry facility

Two types of DML: –Procedural: manipulates the database record by record. –Non-Procedural: operates on a set of records. Most common is Structured Query Language (SQL) Controlled Access to the database: –security system –integrity system –Concurrency controlled, shared access –recovery control system –user accessible catalog

Database Processing Sales Contracts Data entry and reports DBMS Database Sales application programs Contracts application programs Property, Owner, Renter and Lease details + File Definitions

Components of DBMS environment HardwareSoftwareProceduresPeople Data BridgeMachineHuman

Hardware Some DBMS run only on particular hardware and operating systems Minimum amount of main memory and disk space to run Client -Server architecture: –Central computer runs the backend of the DBMS –Other computers run the frontend

Dream Home hardware configuration Database serverEastern Office Western Office Southern Office Northern Office Database

Software The DBMS software Application programs: C, COBOL, Fortran, Ada etc. Using a fourth level language such as SQL Fourth generation tools: –rapid development of applications –non-procedural query languages –report generators –form generators –graphic generators –application generators Fourth generation tools can improve productivity.

Data The structure of the database is called the schema. Tables: Property_for_Rent, Owner, Renter and Lease Attributes System Catalog contains: –Names, types, and sizes of data items –Integrity constraints on data –Names of authorized users who have access to the data –What indexes and storage structures are being used- Tree structures.

Procedures: Log on to the DBMS Use particular DBMS facility or application program Start and stop the DBMS Make backup copies of the database Handle hardware and software failures Change the structure of the table, reorganize the data across multiple disks, improve performance, or archive data to secondary storage. PEOPLE: DB engineers, DB designers, DB developers/ programmers

Data and database administrators Data Administrator (DA) –management of data (database planning, development, maintenance of standards, policies, procedures and conceptual and logical database design). Database Administrators: –Physical database design and implementation, security and integrity control, maintanence of the operational system and ensuring satisfactory performance for the applications and users.

Database designers Logical database designers: –Entities, attributes, relationships, constraints Business rules Physical database designers: –Decides how it is to be physically realized.

Application Programmers Retrieving, inserting, updating and deleting Programs –Third Generation Language (3GL) –Fourth Generation Language (4GL) End Users: –Inexperienced Users –Sophisticated users

The Paradigm Shift The structure of the database is determined using the database design. Paradigm shift: think of the data first and the application later. Poorly designed database --> errors Well designed database --> correct information A complete methodology for database design. –Entity- Relationship diagram –Guidelines to help identify the entities, attributes and relationships

Advantages of Databases Control of data redundancy Data consistency More information from the same amount of data Sharing the data Improve data integrity and improve security Enforce standards Economies of scale Balance the conflicting requirements Improve data accessibility and responsiveness Increase productivity Improve maintenance through data interdependencies (pgm-data independence) Increase concurrency Improve backend recovery services

Disadvantages of Databases Complexity Size Cost of DBMS Additional hardware costs Cost of conversion Performance High impact of a failure