DBMS-Lecture1 (P1-C1-T1)
DBMS-Lecture1 (P1-C1-T1)
Brenda Castro
07-June 2012
1st Semester AY 2012-2013
Chapter Objectives
Establish an understanding of database principles and the technologies and theory underlying database management systems.
1. Topics:
Data vs. Information Database Database Management System (DBMS) File System vs. DBMS Data Models Entities Relationships Relational Database
-Data that have been processed in such a way that the knowledge of the person who uses the data is increased
Data or Information ?
Bayani, Jeffrey Joseph Torres, Gladyse Faye Estaris, Alain Sanchez, Jessica Aquino, Simeon Corona, Renato Enrile, Johnny Belmonte, Sonny Santiago, Defensor Philips, Philip 2010019922 2010019340 2010018273 2010000001 2011000002 2011000010 2011000100 2011000030 2010101010 2010000002
Data or Information ?
Course: IM201-Database Management System Semester: 1st, 2012-13
Class Roster
Student ID 2010019922 2010019340 2010018273 2011000002 Student Name Bayani, Jeffrey Joseph Torres, Gladyse Faye Estaris, Alain Aquino, Simeon Corona, Renato Enrile, Johnny Belmonte, Sonny Section 3ISA 3ISA 3ISA 3-PH 3-PH 3-PH 3-PH GPA 2.9 3.4 2.8 2.9 3.3 3.1 2.9
2011000010
2011000100 2011000030 2010101010 2010000001 2010000002
Santiago, Defensor
Sanchez, Jessica Philips, Philip
3-PH
3-AI 3-AI
3.2
3.7 3.5
Data or Information ?
Metadata
Data that describe the properties or characteristics of end-user data, and the context of that data. Describes how data is formatted to essentially understand the information/records stored in a database. Data about data
Name Course Semester Section Type Alphanumeric Alphanumeric Alphanumeric Length Min 30 15 4 Max Description Source Course ID and Name Academic Units Semester and Year Section Registrar Registrar
Student ID.
Name GPA
Integer
Alphanumeric Decimal
10
50 3 0.0 5.0
Student Number
Students Full Name Grade Point Average
Student File
Student File Academic Units 8
What is DBMS?
Is an organized collection of data that exists over a long period of time, typically in digital form. The data are organized to model relevant aspects of reality (for example, the availability of rooms in hotels), in a way that supports processes requiring this information (for example, finding a hotel with vacancies).
Is a collection of programs that allows storage, modification and extraction of information from a database.
9
10
Data Models
A collection of tools for describing data data relationships data semantics data constraints A set of concepts to describe the structure of a database, and certain constraints that the database should obey. Entity-Relationship model Relational model Other models: object-oriented model semi-structured data models Older models: network model and hierarchical model
11
Data Modelling
DATABASE SYSTEM
REALITY structures processes data modeling MODEL
The model represents a perception of structures of reality The data modeling process is to fix a perception of structures of reality and represent this perception In the data modeling process we select features and then, we conceptualize
12
Entity - Relationship
deposit
Entities (objects) E.g. customers, accounts, bank branch Relationships between entities E.g. Account A-101 is held by customer John Luna Relationship set depositor associates customers with accounts
13
Relational Model
customer-id 192-83-7465 019-28-3746 192-83-7465 321-12-3123 019-28-3746 customername John Luna Pepe Rizal Andy Buena Greg Diaz Marie Yu
customerstreet
V. Mapa Tordesillas Castilla Esteban Valencia
customercity
Manila Makati Quezon Makati Manila
Database design in E-R model usually converted to design in the relational model which is used for storage and processing
14
Relational Database
Customer-id 192-83-7465 019-28-3746 192-83-7465 321-12-3123 019-28-374 Customer-name John Luna Pepe Rizal Andy Buena Greg Diaz Marie Yu account-no A-101 Customer-street V. Mapa Tordesillas Castilla Esteban Valencia Customer-id 192-83-7465 Customer-city Manila Makati Quezon Makati Manila Account-no A-101
tblCustomers
account-balance 25,000.00
tblAccounts
A-215
A-201 A-217 A-210
42,785.23
56,987.58 167,926.89 89,937.19
019-28-3746
192-83-7465 321-12-3123 019-28-374
A-215
A-201 A-217 A-210
tblDepositor
15
Questions?
Consultation Hours: Thursdays, 1:00PM to 3:00PM Email: [email protected]
16
2. Topics:
File Processing System vs. DB Approach Range of DB Applications Applications of DBMS DBMS Users
17