Professional Documents
Culture Documents
File:
A file is a collection of data and information arranged and stored as a single entity called record.
A file contains groups of records used to provide information for operations, planning,
management, and decision making. Files are typically designed to meet the needs of a particular
application.
Database:
A database is an organized collection logically related records arranged and stored as a tuple in a
table. Database is especially designed to store and manage large bodies of information regarding
to various application.
The heart of a database is the database management system (DBMS), which allows the creation,
modification, and updating of the database; the retrieval of data; and the generation of reports
and displays. Thus, DBMS is software that allows us to handle the database.
Data:
Data are any facts number or texts that are processed to get information. They are the raw
materials which are consumed by processes and converted into valuable information.
Metadata:
Data that provides information about other data are called metadata. It is descriptive information
about a particular data set, object, or resource, including how it is formatted, and when and by
whom it was collected.
Relationship:
One-to-one
One-to-many
Many-to-one
Many-to-many
Basic construct of Table:
Records(Rows) A record holds all of the various discrete Roll Name Address Contact
pieces of data for single entry.
Hari
Key Constraints Constraints that uniquely identifies Primary Key, Secondary Key,
record or establish and enforce a link Foreign Key
between the data in two tables.
Key Constraints:
a) Primary Key:
A primary key is a field with values that are unique throughout a table. The Primary
key constraint uniquely identifies each record in a database table.
b) Secondary Key:
A primary key is a field with unique or not-unique values that provides indexes to the
table. Secondary keys are used to view records in an order that is different from the order
defined by the primary key fields.
c) Foreign Key:
A foreign key is a field in one table that uniquely identifies a row of another table.
A foreign key are used to link two tables together.
Foreign Key
Primary Key Secondary Key
ER Model Table
Entity Record(row)
Attribute Field(column
Normalization:
Normalization is a process of breaking down a single complex table into two or more simple
table and defining a relationship between those tables. In other word, normalization is a process
of structuring the tables for reducing redundancy. It also helps to avoid inconsistencies of data.
Normal Form:
There are various levels of normalization. These levels are called normal forms.
Example:
Unnormalized Table
1 NF Table
2 NF Table