Professional Documents
Culture Documents
FDS Rev
FDS Rev
• STUDENTs
• COURSEs
DATABASE USERS - ACTORS ON THE SCENE (ADSE)
• SECTIONs (of COURSEs)
• (academic)DEPARTMENTs a) Database Administrators - responsible for
• INSTRUCTORs authorizing access to the database, for coordinating
and monitoring its use, acquiring software, and
Note: The above could be expressed in the ENTITY-
hardware resources, controlling its use and
RELATIONSHIP data model.
monitoring efficiency of operations
Some mini-world relationships:
b) Database Designers - responsible to define the
• SECTIONs are of specific COURSEs content, the structure, the constraints, and functions
• STUDENTs take SECTIONs or transactions against the database. They must
• COURSEs have prerequisite COURSEs communicate with the end-users and understand
• INSTRUCTORs teach SECTIONs their needs.
• COURSEs are offered by DEPARTMENTs
• STUDENTs major in DEPARTMENTs c) System Analysts and Application Programmers
(Software Engineers) - responsible for the design,
structure and properties of the database and
DATA - Known facts that can be recorded and have an responsible for writing application programs that
implicit meaning. interact with the database.
iii. Sophisticated End Users - These are engineers, C. Object-Oriented Applications and the Need for More
scientists, business analysts and others who Complex Databases
thoroughly familiarize themselves with the • OODBMSs were introduced in late 1980’s and
facilities of DBMS to implement their own early 1990’s to cater to the need of complex data
application to meet their complex requirements. processing in CAD and other applications. Their
use has not taken off much. (OODBMS – Object-
iv. Standalone Users - They are the users who oriented Application and the need for more
interacts with the database directly via on-line complex databases)
terminal or indirectly through Menu or graphics-
based interfaces. D. Interchanging Data on the Web for E-Commerce
Using XML
• Scientific Applications
c) Operators and maintenance personnel - They are • Image Storage and Management
responsible for the actual running and maintenance • Audio and Video data management
of the hardware and software environment for the • Data Mining
database system. Also called the system • Spatial data management
administration personnel. • Time Series and Historical Data Management
DATA MODEL OPERATIONS: Operations for specifying c) IMPLEMENTATION (representational, external) data
database retrievals and updates by referring to the models:
concepts of the data model. Operations on the data Provide concepts that fall between the above
model may include BASIC OPERATIONS and USER- two, balancing user views with some computer
DEFINED OPERATIONS. storage details.
b) NETWORK MODEL:
the first one to be implemented by Honeywell in e) OBJECT-RELATIONAL MODELS:
1964-65 (IDS System). Most Recent Trend.
Adopted heavily due to the support by CODASYL Started with Informix Universal Server.
(CODASYL - DBTG report of 1971). Exemplified in the latest versions of Oracle-10i,
Later implemented in a large variety of systems - DB2, and SQL Server etc. systems.
IDMS (Cullinet - now CA), DMS 1100 (Unisys),
IMAGE (H.P.), VAX -DBMS (Digital Equipment
Corp.) Schemas versus Instances
ADVANTAGES: DATABASE SCHEMA:
Network Model can model complex relationships and • The overall description of a database.
represents semantics of add/delete on the • Includes database structure and the constraints
relationships. that should hold on the database.
Can handle most situations for modeling using record • The term "SCHEMA" refers to the organization of
types and relationship types. data as a blueprint of how the database is
Language is navigational; uses constructs like FIND, constructed and stored (divided into database
FIND member, FIND owner, FIND NEXT within set, tables in the case of relational databases).
GET etc. • sketch of a planned database
Programmers can do optimal navigation through the • doesn’t have any data in it
database. • static
DISADVANTAGES: TWO TYPES:
Navigational and procedural nature of processing a. LOGICAL SCHEMA
Database contains a complex array of pointers that It describes the database designed at logical
thread through a set of records. Little scope for level.
automated “query optimization” the programmers, as well as the database
administrator (DBA), work
data can be described as certain types of data
c) HIERARCHICAL DATA MODEL: records that can be stored in the form of data
implemented in a joint effort by IBM and North structures.
American Rockwell around 1965. Internal details (such as an implementation of
Resulted in the IMS family of systems. data structure) will be remaining hidden at this
The most popular model. level.
Other system based on this model: System 2k The logical schema that the user sees depends on
(SAS Inc.) the type of database management system.
ADVANTAGES: The basic models are: hierarchical, network,
relational, object-oriented.
Hierarchical Model is simple to construct and operate
on b. PHYSICAL SCHEMA
Corresponds to several natural hierarchically It describes the database designed at physical
organized domains – e.g., assemblies in level.
manufacturing, personnel organization in companies Expressed how data is stored in blocks of
Language is simple; uses constructs like GET, GET storage.
UNIQUE, GET NEXT, GET NEXT WITHIN PARENT etc.
DISADVANTAGES:
VIEW SCHEMA: can be defined as the design of the
Navigational and procedural nature of processing database at the view level, which generally describes
Database is visualized as a linear arrangement of end-user interaction with database systems.
records SCHEMA DIAGRAM: A diagrammatic display of
Little scope for “query optimization” (some aspects of) a database schema.
SCHEMA CONSTRUCT: A component of the schema
or an object within the schema, e.g., STUDENT,
d) OBJECT-ORIENTED DATA MODEL(S): COURSE.
One set comprises models of persistent O-O
Programming Languages such as C++ (e.g., in
DATABASE INSTANCE: The actual data stored in a
OBJECTSTORE or VERSANT), and Smalltalk (e.g.,
database at a particular moment in time. Also called
in GEMSTONE).
database state (or occurrence).
THREE-SCHEMA ARCHITECTURE
Advantages of Three-schema Architecture
Proposed to support DBMS characteristics of:
This architecture makes the database abstract. It
• Program-data independence. is used to hide the details of how data is
• Support of multiple views of the data. physically stored in a computer system, which
Defines DBMS schemas at three levels: makes it easier to use for a user.
This architecture allows each user to access the
i. INTERNAL SCHEMA: at the internal level to same database with a different customized view
describe physical storage structures and access of data.
paths. Typically uses a physical data model. This architecture enables a database admin to
ii. CONCEPTUAL SCHEMA: at the conceptual level change the storage structure of the database
to describe the structure and constraints for the without affecting the user currently on the
whole database for a community of users. Uses a system.
conceptual or an implementation data model.
iii. EXTERNAL SCHEMAS: at the external level to
describe the various user views. Usually uses the Mappings among schema levels are needed to transform
same data model as the conceptual level. requests and data. Programs refer to an external schema
and are mapped by the DBMS to the internal schema for
execution.
INTERNAL OR PHYSICAL LEVEL: This is the lowest level of
database abstraction. It describes how the data is MAPPING - Process of transforming request and results
actually stored in the database and provides methods to between three level.
access data from the database. It allows viewing the
physical representation of the database on the computer
system. The interface between the conceptual schema DATA INDEPENDENCE
and the internal schema identifies how an element in the
conceptual schema is stored and how it may be accessed.
• PHYSICAL DATA INDEPENDENCE: The capacity to Programmer interfaces for embedding DML in
change the internal schema without having to change programming languages:
the conceptual schema.
• Pre-compiler Approach
When a schema at a lower level is changed, only the • Procedure (Subroutine) Call Approach
mappings between this schema and higher-level schemas
– Embedded Approach: e.g embedded SQL (for C, C++,
need to be changed in a DBMS that fully supports data
etc.), SQLJ (for Java)
independence. The higher-level schemas themselves are
unchanged. Hence, the application programs need not be – Procedure Call Approach: e.g. JDBC for Java, ODBC for
changed since they refer to the external schemas. other programming language
2 TYPES OF DML
o HIGH LEVEL OR NON-PROCEDURAL Interface for DBA: most database systems contain
LANGUAGES:, SQL, are set-oriented and specify privileged commands that can be used only by the DBA
what data to retrieve than how to retrieve. Also staff.
called Declarative Languages. Other DBMS Interfaces
o LOW LEVEL OF PROCEDURAL LANGUAGES:
record-at-a-time; they specify how to retrieve • Speech as Input and Output
data and include constructs such as looping. • Web Browser as an interface
• Used to store schema descriptions and other TWO TIER CLIENT-SERVER ARCHITECTURE
information such as design decisions, application program
• User Interface Programs and Application Programs run
descriptions, user information, usage standards, etc.
on the client side
Active data dictionary is accessed by DBMS
• Interface called ODBC (OPEN DATABASE
software and users/DBA.
CONNECTIVITY) provides an Application program
Passive data dictionary is accessed by users/DBA
interface (API) allow client-side programs to call the
only.
DBMS. Most DBMS vendors provide ODBC drivers.
• combines everything into single system including- • acts like a conduit for sending partially processed data
DBMS software, hardware, application programs and between the database server and the client.
user interface processing software.
Additional Features-Security:
• A centralized database is stored at a single location
such as a mainframe computer. • encrypt the data at the server before transmission
• It is maintained and modified from that location only • decrypt data at the client
and usually accessed using an internet connection
such as a LAN or WAN.
• The centralized database is used by organizations CLASSIFICATION OF DBMSs
such as colleges, companies, banks etc.
Based on the data model used:
DISTRIBUTED DATABASE
ENTITIES are represented by means of rectangles.
• known as client server-based database systems Rectangles are named with the entity set they represent.
• they do not support a totally
ATTRIBUTES are the properties of entities. They are
distributed environment, but rather a set of
represented by means of ellipses. Every ellipse represents
database servers supporting a set of clients.
one attribute and is directly connected to its entity
• A distributed database is a collection of multiple
(rectangle).
interconnected databases, which are spread
physically across various locations that communicate COMPOSITE ATTRIBUTES are further divided in a
via a computer network. tree-like structure. Every node is then connected
to its attribute. That is, composite attributes are
VARIATIONS:
represented by ellipses that are connected with
• Homogeneous DDBMS – all sites use identical DBMS an ellipse.
and OS MULTIVALUED ATTRIBUTES are depicted by
double ellipse.
• Heterogeneous DDBMS - different sites have different
DERIVED ATTRIBUTES are depicted by dashed
OS, DBMS products and data models.
ellipse.
5) DERIVED ATTRIBUTES: Attributes from which the RECURSIVE RELATIONSHIP: same entity type participate
value is calculated from other attributes. more than once in a relationship type in different roles.
Example: Age
6) NULL VALUES: A particular attribute may not have an Relationships are represented by diamond-shaped box.
applicable value for an attribute. Name of the relationship is written inside the diamond-
7) COMPLEX ATTRIBUTES: Formed by nesting box. All the entities (rectangles) participating in a
composite attributes and multi-valued attributes in relationship, are connected to it by a line.
arbitrary way.
Binary Relationship and Cardinality