Professional Documents
Culture Documents
Characteristics of A Database System
Characteristics of A Database System
In File system storing and retrieving of DBMS is efficient to use since there are
data cannot be done efficiently. wide varieties of sophisticated
techniques to store and retrieve the
data.
Protecting a file under file system is very DBMS has a good protection
difficult. mechanism.
DBA
A person who has such central control over both data and programs is called a
database administrator (DBA). Functions are,
Granting of authorization for data access:
Routine maintenance:
Advantage of dbms
Controlled Redundancy
Restricting Unauthorized Access
Providing Backup & Recovery
Multiple user interfaces
Data independence
Data independence is the capacity to change the schema at one level of a
database without changing the schema at the next higher level.
Logical and physical data independences
DDL:
Ex: Create, alter, drop, rename.
DML:
Ex: Insert, delete, select, update.
DCL:
Ex: Grant, revoke.
Entity set
The collection of all entities of a particular entity type in the database at
any point of time is called an entity set.
Attributes
Attributes are properties used to describe an entity.
Relationships Set
A relationships set is a set of relationships of the same type.
Foreign key
Foreign key are the columns of a table that points to the primary key of another
table.
Alternate key
It is a key associated with one or more columns whose values uniquely identify
every row in the table, but not a primary key.
Candidate key
Candidate key is a column in a table that can uniquely identify any database
record without referring to any other data.
Aggregate Functions
Aggregate functions are functions that take a collection of values as input and return
a single value. SQL offers five built-in aggregate functions:
Average: avg
Minimum: min
Maximum: max
Total: sum
Count: count
Views
• A view is a “virtual” table that is derived from other tables.
• A view does not exist physically.
Integrity constraints
Integrity constraints are a set of rules.It is used to maintain the quality of information.
Embedded SQL
Normalization
Normalization splits a large table into smaller tables and define relationship
between them to increase the clarity in organizing data.
BCNF
A 3NF table which does not have multiple overlapping candidate key is said to be in
BCNF. A table said to be in BCNF if it satisfies the fallow conditions,
Transaction
Transaction states are- Active state, Partially committed state, Committed state,
Failed state, Aborted state, Terminated state.
Deadlock
A deadlock is an unwanted situation in which two or more transactions are
waiting indefinitely for one another to give up locks.
Recovery failures
Logical error
System error