Chapter 1
Chapter 1
Numeric and Textual Databases Multimedia Databases Geographic Information Systems (GIS) Data Warehouses Real-time and Active Databases (A number of these databases and applications are described later through this course.)
Basic Definitions
Database: A collection of related data. Data: Known facts that can be recorded and have an implicit meaning. Information: Processed data (i.e. data under consideration). Event makes data into information. It is user specific. Mini-world: Some part of the real world about which data is stored in a database. For example, student grades and transcripts at a university. Database Management System (DBMS): A software package/ system to facilitate the creation and maintenance of a computerized database. Database System: The DBMS software together with the data itself. Sometimes, the applications are also included.
Other features: Protection or Security measures to prevent unauthorized access Active processing to take internal actions on data Presentation and Visualization of data
Database Users
Users may be divided into those who actually use and control the content (called Actors on the Scene) and those who enable the database to be developed and the DBMS software to be designed and implemented (called Workers Behind the Scene).
Potential for enforcing standards: this is very crucial for the success of database applications in large organizations Standards refer to data item names, display formats, screens, report structures, meta-data (description of data) etc. Reduced application development time: incremental time to add each new application is reduced. Flexibility to change data structures: database structure may evolve as new requirements are defined. Availability of up-to-date information very important for on-line transaction systems such as airline, hotel, car reservations. Economies of scale: by consolidating data and applications across departments wasteful overlap of resources and personnel can be avoided.
Data are actually stored as bits, or numbers and strings, but it is difficult to work with data at this level. It is necessary to view data at different levels of abstraction. The DBMS management architecture can be classified as three level schema architecture as given below:
Routines are hardcoded to deal with physical representation. Changes to data structures are difficult to make. Application code becomes complex since it must deal with details. Rapid implementation of new features very difficult.
In the relational model, the conceptual schema presents data as a set of tables.
The DBMS maps data access between the conceptual to physical schemas automatically.
Physical schema can be changed without changing application: DBMS must change mapping from conceptual to physical.
Students should not see faculty salaries. Faculty should not see billing or payment data.
Information that can be derived from stored data might be viewed as if it were stored.
Applications are written in terms of an external schema. The external view is computed when accessed. It is not stored. Different external schemas can be provided to different categories of users. Translation from external level to conceptual level is done automatically by DBMS at run time. The conceptual schema can be changed without changing application:
Mapping from external to conceptual must be changed. Referred to as conceptual data independence.
Data Independence
A major objective for three-level architecture is to provide data independence, which means that upper levels are unaffected by changes in lower levels. Logical data independence
Immunity of external models to changes in the logical model Occurs at user interface level
DBMS Languages:
To provide the various facilities to different types of users, a DBMS normally provides one or more specialized programming languages called database languages i.e. set of syntax and semantics which allows database users to access the DBMS.
Some examples: SELECT - Retrieve data from the a database INSERT - Insert data into a table UPDATE - Updates existing data within a table DELETE - deletes all records from a table, the space for the records remain MERGE - UPSERT operation (insert or update)