Chapter 1-Introduction To Database System
Chapter 1-Introduction To Database System
Chapter 1-Introduction To Database System
EC601
P4
A3
EC601 : ASSESSMENT
CLO Types Of Assessment
1. CONTINUOUS ASSESSMENT (CA) CLO1 i. Quiz (minimum 4) 20
Percentage (%)
50
CLO1
20
50 10 50 100
CLO1, CLO2, i. Practical Work (minimum 6) CLO3 CLO3 i. Presentation (minimum 1) 1. FINAL EXAMINATION (FE) Total
CHAPTER ONE
DATA VS INFORMATION
DATA are raw facts used to indicate that the facts have not yet
been processes. - Data can be recorded and that have implicit meaning. For example, consider the names, telephone numbers, and
INTRODUCTION
DATABASE
A collection of data stored in a standardized format,
designed to be shared by multiple users.
DATA VS INFORMATION
A DATABASE has some source from which data is derived,
some degree of interaction with events in the real world, and
an audience that is actively interested in its contents.
LEVELS OF DATA
No 1. 2. Level Description Character basic logical data element. It consists of a single alphabetic, numeric, or other symbol. Field It consists of a grouping of characters. A data field represents an attribute (a characteristic or quality) of some entity (object, person, place, or event). A group of the related fields of data Represents a collection of attributes that describe an entity. A group of related records Frequently classified by the application for which they are primarily used Also classified by their permanence, for example, a master file versus a transaction file. An integrated collection of logically related records or objects. A database consolidates records previously stored in separate f files into a common pool of data records that provides data for many applications.
3. 4.
Record File
5.
Database
DATABASE TERMINOLOGIES
Database System
DBMS
DBMS
1. DBMS - a computer software program that enables users to access, create and maintain a database. 2. DBMS is also the combination of data, hardware, software and users to help an enterprise manage its operational data. 3. The main function of a DBMS - to provide efficient and reliable methods of data retrieval to many users. 4. The general-purpose of DBMS - facilitates the processes of defining, constructing, manipulating, and sharing databases among various users and applications.
DBMS
No
1.
Process
Defining
Description
specifying the data types, structures, and constraints of the data to be stored in the database. Data files - files that store the database information Meta-data - such as index files and data dictionaries, store administrative information.
2.
Constructing
process of storing the data on some storage medium that is controlled by the DBMS.
3.
Manipulating
DBMS
Advantages of Database Approach
Sharing of data.
Enforcement of standards.
DBMS
DATABASE MANAGEMENT APPROACH
Data is most important
Data defined first Standard format Access through DBMS Queries, Reports, Forms Application Programs 3GL Interface Data independence Change data definition without changing code Alter code without changing data Move/split data without changing code
All Data
DBMS
Program1
16
DBMS
EXAMPLES OF COMMERCIAL SYSTEMS SOFTWARE
FILE_BASED SYSTEM
A file based system - a collection of application
programs that perform services for the end-users, usually the production of reports.
FILE_BASED SYSTEM
Were developed as better alternatives to paper based
filing systems.
FILE_BASED SYSTEM
FILE_BASED SYSTEM
FILE-BASED SYSTEM
The PROBLEMS of file based system are:
Data separation and isolation Data dependence Data duplication Incompatible data (different file formats)
DATABASE SYSTEM
Database system is a system to achieve an organized,
store a large number of dynamical associated data, facilitate
for multi-user accessing to computer hardware, software and data, that it is a computer system with database technology.
DATABASE SYSTEM
Advantages of database systems are:
Sharing of data
Consistency of data Integrity of data Security of data Data independence
Potentially increased
productivity
DATABASE SYSTEM
DATABASE SYSTEM
3. Support of multiple views of the data 4. Sharing of data and multiuser transaction processing
Also known as a MULTIUSER Database Supports a relatively small number of users (<50) A specific department within an organization using the
same database DEPARTMENT DATABASE
The DBMS acts as an interface between what two components of an enterprise-class database system? A. Database application and the database B. Data and the database C. The user and the database application D. Database application and SQL
except ________ .
A. user data
B. metadata
C. reports
D. indexes
An application where only one user accesses the database at a given time is an example of a ________ . A. single-user database application B. multiuser database application C. e-commerce database application D. data mining database application
An on-line commercial site such as Amazon.com is an example of a ________ . A. single-user database application B. multiuser database application C. e-commerce database application D. data mining database application
Metadata enables database designers and users to do all of the following except: A. sample data. B. understand what data exist. C. what the fine distinctions are between similar data items. D. what the data mean.
A database management system (DBMS) is a: A. hardware system used to create, maintain, and provide controlled access to a database. B. hardware system used to create, maintain, and provide
________ .
A. creating and processing forms B. creating databases C. processing data D. administrating databases
A. Photo image
B. Video clip C. Dates D. None of the above.
________ .
A. database
B. table
C. instance D. relationship
A ________ .
A. single-user database application
2. 3.
4. 5. 6. 7.
rows and columns. A database has data and relationships. In an enterprise-class database system, business users interact directly with database applications, which directly access the database data. Applications are programs that interact directly with the database. A database has a built-in capability to create, process and administer itself. A database design may be based on existing data. A workgroup typically comprises between 25 and 100 persons.
DATA MODEL
MODEL A Model is representation of reality, real world objects and events and their associations. A database model is an organizing principle that specifies particular mechanism of data storage and retrieval. The model explains, in terms of services available to an
DATA MODEL
Data Model is a collection of concepts that can be used
to describe the structure of database. Structure of database means data types, relationships and constraints. In addition, most data model include a set of basic operations for specifying retrievals and modifications on the database. Data Model provides a means to achieve Data Abstraction. Data Abstraction is refers to the hiding of certain details of how the data are stored and maintained. With several levels of abstraction, the users view of the database is simplified and this leads to the improved understanding of data.
DATA ABSTRACTION
The major purpose of a database system is to provide
users with an abstract view of the system. Complexity should be hidden from database users. There are 3 levels of abstraction:
Levels of Abstraction Physical level Logical level Description how the data is stored physically and where it is stored in database. what information or data is stored in the database (like what is the data type or what is format of data) end users work on view level. if any amendment is made it can be saved by other name.
View level
LEVELS OF ABSTRACTION
Views describe how users see the data. Conceptual schema defines logical structure Physical schema describes the files and indexes used. Users
View 1
View 2
View 3
Conceptual Schema
Physical Schema
DB
DATA MODEL
To represent data.
To make the data understandable.
HIERARCHICAL MODEL
Customers
Customer Order Items Ordered
Orders
To retrieve data, you must start at the top (customer). When you retrieve a customer, you retrieve all nested data.
69
Items
Item Description 998 Dog Food 764 Cat Food Quantity 12 11
HIERARCHICAL MODEL
NETWORK MODEL
Entry point
Customer
Order
Items Ordered
Items
Entry point
72
NETWORK MODEL
RELATIONAL MODEL
RELATIONAL MODEL
Customer(CustomerID, Name,
Order(OrderID, CustomerID, OrderDate, ItemsOrdered(OrderID, ItemID, Quantity, Items(ItemID, Description, Price,
76
Example:
Bid 11 22 33 44 55 Franklin forgets Arthur and the Seventh-Inning Stretcher Midnight Wrestlers Midnight Pilot Book of Science Activities Title Author Bourgeois Krensky Morgan Morgan Price 7.00 14.00 11.00 9.00 18.00
DATABASE LANGUAGE
DATA DEFINITION LANGUAGE (DDL)
DATABASE LANGUAGE
DATA MANIPULATION LANGUAGE (DML)
DATABASE LANGUAGE
4G LANGUAGE (4GL)
DATABASE LANGUAGE
4G LANGUAGE (4GL)
development
All systems physical devices Main component computer and computer peripherals Networks
OS software - Manages all hardware components DBMS software Manages the database within the
database system
D. Database implementation
An entity type is which of the following? A. A major category of data about people, place, and things B. The various departments of an organization C. The application software D. The business processes the support the mission of an
organization
knowledge of a DBMS?
A. Enterprise modeling
User views are included as part of which schema? A. Internal B. Conceptual C. External D. None of the above.