Ddbms Unit 1 Part1
Ddbms Unit 1 Part1
• A database is an ordered collection of related data that is built for a specific purpose. A
database may be organized as a collection of multiple tables, where a table represents a real
world element or entity. Each table has several different fields that represent the
characteristic features of the entity.
• For example, a company database may include tables for projects, employees, departments,
products and financial records. The fields in the Employee table may be Name, Company_Id,
Date_of_Joining, and so forth.
• A database management system is a collection of programs that enables creation and
maintenance of a database. DBMS is available as a software package that facilitates
definition, construction, manipulation and sharing of data in a database.
• Examples of DBMS Application Areas
• Automatic Teller Machines, Train Reservation System, Employee Management System, Manufacturing
etc.
File processing Vs Database Approach
Database Approach:
• To remove the defects from the file processing systems the database was approach was
used which eliminated the interdependency of the program and the data. The
changes/modifications can be brought about easily whether they were related to the
programs or the data itself.
• Database is a shared collection of logically related data.
Database Schemas:
Hierarchical DBMS
• In hierarchical DBMS, the relationships among data in the database are established so that
one data element exists as a subordinate of another. The data elements have parent-child
relationships and are modelled using the “tree” data structure. These are very fast and
simple.
Types of DBMS ..
Network DBMS
• Network DBMS in one where the relationships among data in the database are of type many
to-many in the form of a network. The structure is generally complicated due to the
existence of numerous many-to-many relationships. Network DBMS is modelled using
“graph” data structure.
Types of DBMS ..
Relational DBMS
• In relational databases, the database is represented in the form of relations. Each relation
models an entity and is represented as a table of values. In the relation or called a tuple
and denotes a single record. A column is called a field or table, a row is an attribute and
denotes a characteristic property of the entity. RDBMS is the most popular database
management system.
Types of DBMS ..
• Need for complex and expensive software − DDBMS demands complex and often expensive
software to provide data transparency and co-ordination across the several sites.
• Processing overhead − Even simple operations may require a large number of
communications and additional calculations to provide uniformity in data across the sites.
• Data integrity − The need for updating data in multiple sites pose problems of data integrity.
• Overheads for improper data distribution − Responsiveness of queries is largely dependent
upon proper data distribution. Improper data distribution often leads to very slow response
to user requests.
Distributed Database Vs Centralized Database
Centralized database
Distributed database
Types of Distributed Databases
• In a homogeneous distributed database, all the sites use identical DBMS and operating
systems. Its properties are −
• The sites use very similar software.
• The sites use identical DBMS or DBMS from the same vendor.
• Each site is aware of all other sites and cooperates with other sites to process user requests.
• The database is accessed through a single interface as if it is a single database.