1 DATABASE By Mr. Abdalla A. Shaame.  What is a database?  The main characters of a database system  The basic database design method  The entity-relationship.

Slides:



Advertisements
Similar presentations
1 Database Theoretic Basis Entity Relationship (E-R) Modeling Database Theoretic Basis Entity Relationship (E-R) Modeling.
Advertisements

Database system concepts and architecture Sept. 2012Yangjun Chen ACS Outline: Concepts and Architecture (Chapter 2 – 3 rd, 4 th, 5 th, and 6 th ed.)
Mapping an ERD to a Relational Database To map an ERD to a relational database, five rules are defined to govern how tables are constructed. 1)Rule for.
Databases and Database Users Sept. 2012Yangjun Chen ACS Outline: Introduction (Chapter 1 – 3 rd, 4 th, 5 th, 6 th ed.) What is a database? The main.
Data modeling using the entity-relationship model Sept. 2012Yangjun Chen ACS Outline: Data modeling using ER-model (Chapter 3 - 3rd, 4th, 5th ed.)
--What is a Database--1 What is a database What is a Database.
Introduction to Introduction to Database Systems Rose-Hulman Institute of Technology Curt Clifton.
File Systems and Databases
Review Database Application Development Access Database Development ER-diagram Forms Reports Queries.
Copyright © 2004 Pearson Education, Inc.. Chapter 1 Database Concepts.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Databases and Database Users Winter 2007Ron McFadyen ACS Database applications Database Database Management System Characteristics Actors Advantages.
Database: Review Sept. 2009Yangjun Chen ACS Database Introduction system architecture, Basic concepts, ER-model, Data modeling, B+-tree Hashing Relational.
Data modeling using the entity-relationship model Winter 2006Ron McFadyen Entity-relationship model (ER model) P. 49: “This model and its variations.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
CSC 351 FUNDAMENTALS OF DATABASE SYSTEMS
Introduction and Conceptual Modeling
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas.
Chapter 1 Database and Database Users Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Outline Types of Databases and Database Applications Basic Definitions Typical DBMS Functionality.
Introduction to Data bases concepts
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1 Chapter 1 - Introduction: Databases and Database Users - Outline Types of Databases and.
Databases and Database Users Jan. 2008Yangjun Chen ACS Outline: Introduction What is a database? The main characters of a database system The basic.
CSE314 Database Systems Lecture 1 Databases and Database Users Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Database and Database Users. Outline Database Introduction An Example Characteristics of the Database Actors on the Scene Advantages of using the DBMS.
1 CSBP430 – Database Systems Chapter 1: Databases and Database Users Mamoun Awad College of Information Technology United Arab Emirates University
Review: Application of Database Systems
Database System Concepts and Architecture
Introduction: Databases and Database Users
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 1 Introduction: Databases and Database Users.
Slide Chapter 1 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.
Course Introduction Ria Mae G. Corda ITB322 (Lecture) 2 nd Semeseter, AY
Introduction to Database Systems
1Mr.Mohammed Abu Roqyah. Introduction and Conceptual Modeling 2Mr.Mohammed Abu Roqyah.
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
SQL Structured Query Language Programming Course.
Database Design Chapter-1- Basic Concepts Reference:
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Chapter(1) Introduction and conceptual modeling. Basic definitions Data : know facts that can be recorded and have an implicit. Database: a collection.
Introduction to Database AIT632 Chapter 1 Sungchul Hong.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Databases and Database Users.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
1-1 Chapter 1 Databases and Database Users 1.1 Introduction 1.2 An Example 1.3 Characteristics of the Database Approach 1.4 Actors on the Scene 1.5 Workers.
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
DatabaseCSIE NUK1 Fundamentals of Database Systems Chapter 1 Database and Database Users.
Characteristics of the Database Approach (Difference between traditional file processing and database approach) Redundancy Self-Describing nature of a.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Databases and Database Users.
An Introduction to Database Systems دانشگاه علم و فناوری مازندران - طراحی و ایجاد بانک های اطلاعاتی 1.
ISC321 Database Systems I Chapter 1: Introduction to Databases Fall 2015 Dr. Abdullah Almutairi.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 1 Introduction: Databases and Database Users.
Computer Science Centre University of Indonesia Chapter 1 Database & Database Users.
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction and Conceptual Modeling.
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
Slide Chapter 1 Introduction: Databases and Database Users.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Chapter 1 Databases and Database Users. Overview Traditional database applications Store textual or numeric information Multimedia databases Store images,
What is a database? (a supplement, not a substitute for Chapter 1…) some slides copied/modified from text Collection of Data? Data vs. information Example:
Chapter 1 Database and Database Users
Databases and Database Users
Databases and Database Users
Outline Types of Databases and Database Applications Basic Definitions
Database and Database Users
9/22/2018.
Database (DB) and Database Management System (DBMS)
Mapping an ERD to a Relational Database
Terms: Data: Database: Database Management System: INTRODUCTION
Presentation transcript:

1 DATABASE By Mr. Abdalla A. Shaame

 What is a database?  The main characters of a database system  The basic database design method  The entity-relationship data model for application modeling 2

3 Types of databases traditional multimedia - pictures, video, sound Scientific database - GIS: maps, weather, satellite images - biological database: DNA sequence analysis warehouse, OLAP - analysis, decision making real-time, active databases - industrial processes deductive databases - combination of inference and databases

4 Database collection of related data represents some aspect of the real world built with a specific purpose in mind could be anywhere - notebook, spreadsheet, Access, Oracle, … could be manual / could be computerized Data known and recordable facts name, phone number, address, grade,...

A database system is composed of four components;  Data  Hardware  Software  Users 5

6

7 Database Management System (DBMS) collection of software facilitating the definition, construction and manipulation of databases Definition record structure data elements names data types constraints etc Construction create database files populate the database with records Manipulation querying updating

8 Database Management System (DBMS) collection of software facilitating the definition, construction and manipulation of databases Users/ actors Request manager Storage manager Meta data Stored database DBMS

9 Sample database Student Name StNo Class Major Smith 17 1 CS Brown 8 2 CS Course CName CNo CrHrs Dept Database CS C CS Section SId CNo Semester Yr Instructor Spring 2000 Smith Winter 2000 Smith Spring 2000 Jones Grades StNo Sid Grade A B file1file2 file3 file4

10 Characteristics of the Database approach single repository of data sharable by multiple users concurrency control transaction control self-describing - system catalogue contains meta data program-data independence some changes to the database are transparent to programs/users multiple views of data - to support individual needs of programs/users

11 Database Actors Database Administrator (DBA) -authorizing access to the database -coordinating and monitoring its use -aquiring software and hardware as needed -solving problems such as breach of security or poor system performance Database Designers/Modelers -identifying the data to be stored -choosing appropriate data structure End-users -access to the database: querying, updating, generating reports Software Engineers -developing application programs

12 Advantages of the Database approach (capabilities we would look for in a DBMS) controlled redundancy database design integrates different user data needs performance tuning may lead to replicated data Sharing of the data controlled/authorized access to data Ensure integrity of the data backup and recovery

13 Implications of the Database approach standards enforcement DBA can enforce standard naming conventions, etc reduced application development time adding new functionality to an existing database is “easy” flexibility adding new data and making some types of changes is “easy” up-to-date information - due to sharable characteristic economies of scale - due to sharable resources the whole organization can make one investment

14 When not to use a DBMS overhead costs are too great high initial investment data and applications are simple, well-defined, not expected to change stringent real-time constraints multi-user environment not needed

15 Database design let’s jump ahead to see this Grades Student Delivery 1 N Course Section N M

16 Database design let’s jump ahead to see this Grades Name Major Student StNo Class Delivery Course Section 1 N N M

17 Database design let’s jump ahead to see this Grades Name Major CName CNo Student StNo Class Delivery Course Section CrHrs Dept 1 N N M

18 Database design let’s jump ahead to see this Grades Name Major CName CNo Instructor Semester Year SId Student StNo Class Delivery Course Section CrHrs Dept N 1 NM

19 Database design let’s jump ahead to see this grade Grades Name Major CName CNo Instructor Semester Year SId Student StNo Class Delivery Course Section CrHrs Dept 1 N N M

20 employee department project dependent With attributes, etc: works for manages works on dependents of controls supervision bdate ssn name lname minit fname sex address salary birthdatenamesex relationship name numberlocation name numberlocation number of employees startdate hours N supervisor supervisee M N 1 1 N N degree 1 N

21 ER-to-Relational mapping 1. Create a relation for each strong entity type 2. Create a relation for each weak entity type include primary key of owner (an FK - foreign key) owner’s PK + partial key becomes PK 3. For each binary 1:1 relationship choose an entity and include the other’s PK in it as an FK. Include any attributes of the relationship 4. For each binary 1:n relationship, choose the n-side entity and include an FK of the other entity. Include any attributes of the relationship

22 5.For each binary M:N relationship, create a relation for the relationship include PKs of both participating entities and any attributes of the relationship PK is the concatenation of the participating entity PKs 6. For each multivalued attribute create a new relation include the PK attributes of the entity type PK is the PK of the entity type and the multivalued attribute 7. For each n-ary relationship, create a relation for the relationship include PKs of all participating entities and any attributes of the relationship PK may be the concatenation of the participating entity PKs