What Is A Database
What Is A Database
Data, it is known fact that can be recorded and that have implicit meaning.
What is a database?
In simple it is collection of inter related data, pertaining to some reasonable well-defined purpose.
Database is a logically coherent collection of data with some inherent meaning.
In broad way database should satisfy the following properties.
• The data must have the a well known format ( this is a the format of the data must be
well-defined to the computer system, not just to application programs that use if). This format
is defined by the metadata / data about the data.
• The data should be stored, retrieved, and modified only by the database management
system
• The data should be under transaction control. That is the set of rules should ensure that
the integrity during and after the operation on the data.
If the data is stored in the above environment satisfying the condition is called the database.
The user of the system needs to provide format of the data specifically. It needs the information also to how
to store the data physically in the disks. The main advantage of using the database is it provides the
transaction control.
The relation is mathematically equivalent to the set. Set is collection of unique objects no
duplicates.
What is a Transaction ?
It is atomic unit work, that it performs its operation on the database completely or not at all. The
should satisfy the ACID principles.
• Atomicity: The transaction consists of set operation. Which are performed on the
database completely of not at all.
• Consistency: The transactions are assumed to be performing the transformation to the
consistent system state.
• Isolation: While a transaction is updating a shared data, that data may be temporarily in
the inconsistent state, that is not exposed to outside, locking mechanism should be used.
• Durability: Once the transaction commits, its updates must be durable.