Week 2 Flashcards
(37 cards)
What is the Three-level Architecture?
View 1 View 2 View 3 1*
\ | /
\ | /
Conceptual Level 2*
|
|
Internal Schema 3*
|
|
Database
1* The way users percieve the data
2* Provide both mapping and desired independance
how to match user view to actual data stored in internal level
3* The way DMBS and the operating system perceive the data
What is the External level of Three-Level Architecture?
View Level
Describes part of the data that is relevant to users
What is the Conceptual Level in Three-Level Architecture?
Describes WHAT data are stored in the database and relationships among the data
What is the Internal Level in Three-Point Architecture?
Describes HOW data is actually stored and how files and indexes are organised and used
What is Data Abstraction?
Hide storage details and present users with conceptual view of database
What is Data Independance?
refers to the system’s ability to change the database schema at one level of a database system without having to change the schema at the next higher level
What is Database Schema?
Description of the structure of Database
What is Database State?
Content of DB at moment in time
What is Initial Database State?
Content of the Database when it is created
What is a Data Model?
Set of concepts to describe:
- Data and relationships among data
- Data constraints
What is a Conceptual Data Model?
Identifies high level data structure
Independant of DBMS, application programs and physical considerations
What are the 3 types of Logical Data Models (hint: H,N,R)?
- Hierarchical
- Network
- Relational
What is a Hierarchical Data Model?
Data is organised in tree-like structure
a node only has one parent
What is a Network Data Model?
Data organised into graph
One node can have more than 1 parent at a time
What is a Relational Data Model?
Way of structuring data in database that emphasizes relationships between data entities
What is a Physical Data Model?
Describe how data is stored in the computer, representing record structures, record orderings and access paths
Highly dependant on target DBMS
What are the main differences between a File-Based Approach and the Database Approach?
In File-Based Approach, each application program defines and manages its own data
While in Database approach, a shared database is stored to control the redundancy and ensure the data consistency and integrity
In the File-Based Approach, each application program directly accesses the data
While in the database approach, all applications access the database through DBMS which provides a few important access control facilities
What is the Conceptual Level in the Three-Level Architecture?
Describes WHAT data is stored in the database and the relationships among the data
Emphasis on logical structure of the data. Must not contain any storage-dependant details
What is the Internal Level in the Three-Level Architecture?
Describes HOW data are actually stored and how files and indexes are organized and used
What are 3 Categories of Data Model?
- Conceptual Data Model
- Logical Data Model
- Physical Data Model
What is a Conceptual Data Model?
Identifies the high level data structure
Independant of DBMS, application programs and physical considerations
example: Entity-Relationship (ER) Model proposed in 1976
What does the Entity-Relationship (ER) model solve?
One of the most difficult aspects of database design is that designers, programmers and end-users tend to view data in different ways
Need a model for communication that is non-technical and free of ambiguities
Solution:Entity-Relationship (ER) Model
What are the 4 Components in an ER Diagram?
- Entity
- Relationship
- Attribute
- Constraint
What is an Entity (ER Diagram)?
A group of objects with the same properties
- Objects with a physical existence:
eg. student, classroom, book, property
- Objects with a conceptual existence
eg. Viewing, Inspection, Sale