For Chapter 3
For Chapter 3
Cont.
A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated.
Collection of interrelated data Set of programs to access the data DBMS contains information about a particular enterprise DBMS provides an environment that is both convenient and efficient to use.
Database Applications:
Banking: all transactions Airlines: reservations, schedules Universities: registration, grades Sales: customers, products, purchases Manufacturing: production, inventory, orders, supply chain Human resources: employee records, salaries, tax deductions
The goal of a DBMS is to provide an environment that is both convenient and efficient to use in : Retrieving information from the database. Storing information into the database. Cont.
DBMS
Why Database ?
Data duplication can be reduced Inconsistency can be avoided The data can be shared Standards can be enforced Security restrictions can be applied Integrity can be maintained Provision of data independence
1-7
Databases are usually designed to manage large bodies of information. This involves Data Definition Language Define the type of data Data Manipulation Language Manipulation of data for arrangement Data Dictionary To access the arranged data
Components of DBMS :-
Hardware
Can range from a PC to a network of computers.
Software
DBMS, operating system, network software necessary) and also the application programs. (if
Data
Used by the organization and a description of this data called the schema.
People
Includes database designers, programmers, and end-users. DBAs, application
Procedure
Instructions and rules that should be applied to the design and use of the database and DBMS.
Relational Model/RDBMS/ORDBMS Entity Relationship Model (for Database Design) Object base Data Model (for Object-Oriented) Semistructured Data Model (XML) Other Older Models :
Network Model Hierarchical Model
3.1 Relational Data Model : This Model uses a collection of tables to represent both data and the relationship among those data. Each table has multiple columns and each column has a unique name. It is an example of Record-Base a model. Database is structured in fix-format records of several types. This is the most widely used Data Model
Table Entity
A table is a collection of data arrange in row and column format. A database may contain one or more tables. An Entity the distinguishable objects of real world.
Fields
Tuples Records
The title of the column that holds a specific type of data is known as field.
Each record row in a table is tuple. The collection of data horizontally for each field is known as record. A record is complete information about an entity.