Академический Документы
Профессиональный Документы
Культура Документы
DBMS?
A database management system (DBMS), is a program
that lets one or more computer users create and access
data in a database.
The DBMS manages user requests so that users and
other programs are free from having to understand
where the data is physically located on storage media
and, in a multi-user system, who else may also be
accessing the data.
DBMS Contd
In handling user requests, the DBMS
ensures the integrity of the data (I,e;
making sure it continues to be accessible
and is consistently organized as intended)
and security (making sure only those with
access privileges can access the data).
The most typical DBMS is a relational
database management system (RDBMS).
A standard user and program interface is
the Structured Query Language
RDBMS
A relational database is a collection of data items organized as a set
of formally-described tables from which data can be accessed or
reassembled in many different ways without having to reorganize
the database tables.
The relational database was invented by E. F. Codd at IBM in 1970.
The standard user and application program interface to a relational
database is the structured query language (SQL).
SQL statements are used both for interactive queries for information
from a relational database and for gathering data for reports.
In addition to being relatively easy to create and access, a relational
database has the important advantage of being easy to extend. After
the original database creation, a new data category can be added
without requiring that all existing applications be modified.
SQL ?
SQL (Structured Query Language) is a
database computer language designed for
managing data in relational database
management systems (RDBMS).
Relationship
Tables can be related to each other in a variety of ways.
Dependencies are formed when an attribute of one table
relates to attributes of other tables.
The simplest relationship is the one-to-one relationship,
in which one record in a table is related to another record
in a separate table.
A one-to-many relationship is one in which one record
in a table is related to multiple records in another table. A
many-to-one relationship defines the reverse situation;
more than one record in a single table relates to only one
record in another table.
Concepts on database
ACID Properties:
ACID properties are one of the important
concept for databases.
ACID stands for Atomicity, Consistency,
Isolation, and Durability. These properties of a
DBMS allow safe sharing of data. Without these
properties the inaccuracy in the data will be
huge. With the help of the ACID properties the
accuracy can be maintained.
Normalization
Normalization is a design technique which helps to design the
relational databases. Normalization is essentially a two step process
that puts data into tabular form by removing redundant data from the
relational tables. A basic goal of normalization is to create a set of
relational tables that are free of redundant data and data should be
consistent. Normalization has been divided into following forms.
First Normal Form(1NF): A relational table, are in first normal form
when all values of the columns are atomic. It means that it contains
no repeated values.
A relational table is in second normal(2NF) form if it is in 1NF and
every non- key column is fully dependent upon the primary key.
A relational table is in third normal form (3NF) if it is already in 2NF
and every non- key column is non transitively dependent upon its
primary key. The advantage of having table in 3NF is that it
eliminates redundant data which in turn saves space.
Primary Key
A column in a table that makes the row in the table
distinguishable from every other row in the same table.
The value entered must be unique and NOT NULL.
Foreign key
A column in a table that draws its values from a primary
or unique key column in another table. A foreign key
assists in ensuring the data integrity of a table.
Secondary key
A key that holds the physical location of a record or a
portion of a record in a file or database, and provides an
alternative means of accessing data. Also known as
alternate key.