Page 1
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 1
Before we begin…
• Introduce yourself. Do mention something about your educational and professional backgrounds.
• What are your goals for graduation?
What do you want to do??
Page 2
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 2
Unit 1:
Database History, Models, and Structure
IT 390 - Business Database Administration
Page 3
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 3
Primary Lesson Objectives
• Explain the history, basic models and components of databases.
• Identify the importance of Relational Algebra, SQL, and ERD Diagrams.
Page 4
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 4
More Details…
• Identify the components of a database and their uses. • Define DBMS and RDBMS. • Identify the differences between DBMS and RDBMS. • Identify the features and functionality of RDBMS.• Identify the data models used for organizing data.• Identify the types of databases and their functionality.• Analyze the E-R data model.• Identify the object-oriented logical data model.• Explain the basic components of databases.
Page 5
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 5
Databases: An Overview
• Databases are organized collection of related data.• Databases can contain data of the following data
types at a single location: Text Graphic Audio Video
• An example is a Hotel which has a “guest” list with details about guest (room number, length of stay, mini-bar tab, etc.)
Page 6
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 6
Features of a Database
• A database has the following features: Stores data in an organized manner. Searches and retrieves the stored data. Maintains a single copy of the data. Provides security to the stored data.
• Several corporations produce database software products. Two BIG players are Microsoft and Oracle
Page 7
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 7
Database?………I thought I was a __________ Guru???
Page 8
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 8
Data and Information• Data are raw facts that may or
may not be useful for the user.• Information is processed data
that holds some meaning to the user.• A physical database is just a file cabinet.
Page 9
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 9
Data Sharing instead of physical duplication• Data sharing is defined as a process by which the
data stored at a single location can be simultaneously accessed and modified by multiple users.
• Data sharing aims at reducing the duplicity of data.
Page 10
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 10
Class Activity
• Which of the following has the most similar structure to that of a database? A library of books A store containing paper and pens A car A video cassette
Page 11
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 11
Solution
• A library resembles the structure of a database. This is because as books are arranged in each bookshelf of a library, similarly, data is stored and arranged in a database.
Page 12
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 12
Class Activity- Data vs. Information
• From the list below classify which of the following is data and which is information: 12 12*8=96 There are two people in the room. Room
Page 13
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 13
Solution
• Data is: 12 Room
• Information is: 12*8= 96 There are two people in the room
Page 14
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 14
Class Activity- data sharing vs. non-sharing
• In a track and field sports meet, multiple events are being conducted at different venues. The overall results need to be declared and compared, but the results for the track and field events have not been updated properly or in a timely manner.
• The result is angry participants and confused spectators. What is this called in database terms?
Page 15
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 15
Solution
• Data inconsistency
Page 16
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 16
Database Management Software DatabaseDBMS
Page 17
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 17
Database Software Vendors
Page 18
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 18
Database Advantages
• Data Integrity• Data Accuracy• Control of Data dependence• Control of Data redundancy• Better Security
Page 19
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 19
Introducing Data Models
Data Model(Prototype) Database
Define the structure that needs to be conceptualized to implement a database.
Data models are:
A set of data structure types
A collection of operators
A set of integrity rules
You can view data model as a prototype of a database. It’s the framework for the way we want to implement our database.
Page 20
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 20
The Relational Database Model
Page 21
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 21
Page 22
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 22
Tables, also called RELATIONS
• Tables are a collection of records that are arranged in the following format: Rows (Records or Tuples) / Horizontal Columns (Fields or Attributes) / Vertical
StudID StudName StudAge
S001 Jack 21
S002 Mary 20
S003 Kate 22
S004 Patrick 19
Columns
Row
s
Page 23
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 23
Components of a Database
• The main components of a database are: Record
Table
S003 Kate 22
StudID StudName StudAge
S001 Jack 21
S002 Mary 20
S003 Kate 22
S004 Patrick 19
Page 24
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 24
Relational Database Management System• An RDBMS has the following components:
Relation (table) Tuple (record or row) Attribute (column or field)
Page 25
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 25
Other Types of Data Models
• Record-based logical models• Network Model (Interconnected)• Hierarchical Model
(Tree structure)
• Object-based logical models
Page 26
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 26
File or Record-based Model
The data is structured in fixed format records.
For example, a firm that has outsourced its processes to (partners in) multiple locations might NEED to use a record-based logical model.
The partners might not have the same database system.
Page 27
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 27
Network Data Model
Page 28
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 28
Hierarchical Data Model
Page 29
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 29
Linux as an example of the Hierarchical Model
Page 30
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 30
Page 31
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 31
Object-Based Logical Models
Attributes
Color
Model
Entity Car
For example, an automobile design firm that stores its information for designing car models might use an object-based logical model.
Page 32
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 32
More About Object-oriented Data Model (OODM)
The Object-oriented data model (OODM) covers: Implementation for complex or large objects called
BLOBs (Binary Large OBjects) like images. High compatibility with Object-oriented programming
languages, such as C++ and Java.
Page 33
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 33
Class Activity
• Identify the type of database that needs to be used for the scenario: A company needs to store information
including pictures on different types of automobiles, parts and their common characteristics, such as model, wheels, and weights.
Page 34
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 34
Solution
• An Object-oriented database is suited for the scenario.
Page 35
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 35
Class Activity
• Identify the type of database that needs to be used for the scenario. A company needs to store text information
on various departments of an organization.
Page 36
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 36
Solution
• A Relational database is suited for the scenario.
Page 37
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 37
Class Activity
• Identify the type of database that needs to be used for the scenario. A garment manufacturing unit wants to store
information of their product text feedback, such as shrinkage, color, and texture. In addition, the unit wants to integrate modeling video of various garments into the existing organizational database.
Page 38
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 38
Solution
• An Object-relational database is suited for the scenario.
Page 39
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 39
Class Activity
• Identify the components of OODM: Car Vehicle Ignition Motor-Bike Two-wheeler Shifting gears Four-wheeler
Page 40
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 40
Solution
• The Objects are: Car Motor-Bike
• The Methods are: Ignition Shifting-gears
Page 41
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 41
Solution (cont.)
• Identifying Inheritance
(letting other objects inherit characteristics)
Vehicle
Two-wheeler Four-wheeler
Page 42
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 42
Three-tiered Visualization
Page 43
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 43
Page 44
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 44
Page 45
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 45
Page 46
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 46
Page 47
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 47
Page 48
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 48
Page 49
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 49
Page 50
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 50
Page 51
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 51
Page 52
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 52
Database Domains
Page 53
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 53
Page 54
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 54
Page 55
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 55
Class Activity- Keys
• What should be the primary key in the following table structure of Employee_LoansTaken table: Employee name Amount of loan taken Type of security Employee ID code Amount still payable
Page 56
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 56
Solutions
• Employee code should be the primary key because: Employee ID code is unique for each
employee. Employee ID code cannot be blank (NULL). Other fields, such as employee name can
have same values for multiple occurrences.
Page 57
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 57
Class Activity • Identify the Entities and Attributes in the
figure:• What do the symbols mean in ERD
diagrams?
Page 58
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 58
Solutions• The Entities are:
Square Circle Triangle
• The Attributes are: Size Color
• The Symbols mean: Rectangle or Square is an Entity/table Oval or Circle is an attribute Diamond or Triangle is a relationship
Page 59
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 59
Entity-Relationship Model
• An approach to representing data in a database
• Entities are drawn as rectangles
• Relationships are drawn as diamonds with lines connecting the entities involved in relationships
Page 60
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 60
One-to-many relationship
Page 61
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 61
Many-to-Many Relationship
Page 62
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 62
Many-to-Many Relationship
Page 63
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 63
One-to-Many Relationship
Page 64
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 64
Many-to-Many Relationship with Attributes
Page 65
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 65
Composite Entity
• Composite entity - an entity that exists to implement a many-to-many relationship
Essentially both an entity and a relationship
Represented in an E-R diagram by a diamond within a rectangle
Page 66
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 66
Composite Entity
Page 67
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 67
Complete E-R Diagram
Page 68
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 68
E-R Diagram with an Existence Dependency and Weak Entity
• Existence dependency - when the existence of one entity depends on the existence of another related entity
• Indicate an existence dependency by placing an “E” in the relationship diamond
• Weak entity - an entity that depends on another entity for its own existence
• A double rectangle encloses a weak entity
Page 69
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 69
E-R Diagram with an Existence Dependency and Weak Entity
Page 70
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 70
Cardinality
• Cardinality - the number of items that must be included in a relationship
• An entity in a relationship with minimum cardinality of zero plays an optional role in the relationship
• An entity with a minimum cardinality of one plays a mandatory role in the relationship
Page 71
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 71
E-R Diagram that Represents Cardinality
Page 72
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 72
• Integrates the existing data into a common uniform framework.
• Provides security and efficient fault-and-performance management for DBAs.
• Is of two types:
Native database middleware
Database generic middleware
Database Middleware
Page 73
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 73
Page 74
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 74
Page 75
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 75
Page 76
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 76
Page 77
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 77
Summary• Database design is a two-part process of
determining an appropriate database structure to satisfy a given set of requirements
• A user view is the set of necessary requirements to support a particular user’s operations
• A database design is represented in a language called Database Design Language (DBDL)
• Designs can be represented pictorially using entity-relationship (E-R) diagrams
Page 78
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 78
Summary• Advantages to both top-down and bottom-up
approaches• One-to-One and One-to-Many relationships require
attention to primary keys• Entity-relationship (E-R) model is a method of
representing the structure of a database using an E-R diagram
• Nowadays, there are really only 2 kinds of databases, Relational and Object-oriented. Other deprecated models existed in the past like Network and Hierarchical.
Page 79
© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 1 Slide 79
• Question(s)??
• LAB TIME!!!