Veda_file-5
Veda_file-5
Database
Data Processing:
• Data processing is the re-structuring or re-ordering of data by people or
machine to increase their usefulness and add values for a particular
purpose.
• Data processing also refers to the complete check of the data validity,
accuracy, consistence, integrity, and its relevance to the client’s
requirements.
Steps in Data Processing :
1. Preparation of source document
2. Input of data
3. Manipulation of data
4. Output of information
5. Data storage
File Processing:
• File processing is the process of creating, storing, and accessing content of
files. For example, you are saving a word processing file to a hard drive.
Similarly, if you store some files on a floppy disk or you retrieve a file from
CD-ROM, it is file processing. File processing may be either sequential or
direct access file processing.
1. Sequential File Processing: it is just working through the input file one
record at a time in the sequence that the information has been stored.
‘Sequential’ is still a kind of file organization. Magnetic tape is the major
example of sequential file processing.
2. Direct-access file processing: Organization refers to the structured
arrangement of resources, people, and processes to achieve specific
goals efficiently. Example: Hard drives, SSDs, Pen drive etc.
Basic Terminologies:
• Data :Data is defined as the raw facts’ figures. It could be any numbers, alphabets
of any combinations of it.
• Information :When data are processed using a database program or software,
they are converted to the meaningful result called information.
• Field: Field is a column in a table that contains specific piece of information
within a record. It is the property or attributes of a table.
• Record: Record is a row in a table that contains information about person, event,
etc. It is a collection of interrelated fields. Another name of record is tuple.
• Table: Table is the arrangement of rows and columns. Each table must have
unique name and must be simple.
• File: a group of related records is a data file when it is independent of any other
files related to it, a single may be referred to as a flat file.
• Primary Key: Primary key is a column or a set of columns in a table whose values
uniquely identify a row in a table.
• Foreign Key: Foreign key is a column or a set of columns in a table whose values
correspond to the values of the primary key in another table which is used to
connect two tables or maintain relationship between them.
• Attributes: Attributes are the describing characteristics or properties that
define all items pertaining (related) to a certain category applied to all cells
of a column.
• Database Model: It is a way of organizing data and its interrelationship.
• SQL: SQL (Structured Query Language) is a standard programming language
used to manage and manipulate relational databases. It is used for tasks
such as querying, updating, inserting, and deleting data.
• MS Access: Microsoft Access is a Database Management System (DBMS)
from Microsoft that combines the relational Microsoft Jet Database Engine
with a graphical user interface and software development tools. It is a part
of the Microsoft Office suite of applications. It stores data in its own format
based on the Access Jet Database Engine. Objective: Table, Query, Form,
Report, Macros etc.
Data and Information
Data Information
In the above diagram, It shows the architecture of DBMS. Mapping is the process of
transforming request responses between various database levels of architecture.
In Conceptual / Internal mapping, it is necessary to transform the request from the
conceptual to internal levels.
1. Physical Level
• Physical level describes the physical storage structure of data in the
database.
• It is also known as the Internal Level.
• This level is very close to the physical storage of data.
• At the lowest level, it is stored in the form of bits with physical
addresses on the secondary storage device.
• At the highest level, it can be viewed in the form of files.
2. Conceptual Level
Weak Entity
A Weak Entity is an entity that must defined by a foreign key
relationship with another entity as it cannot be uniquely identified by
its own attributes alone.
2. Attribute
• An attribute describes the property of an entity. An attribute is represented
as Oval in an ER diagram. There are four types of attributes:
• 1. Key attribute
2. Composite attribute
3. Multivalued attribute
4. Derived attribute
• 1. Key attribute:
• A key attribute can uniquely identify an entity from an entity set. For
example, student roll number can uniquely identify a student from a set of
students. Key attribute is represented by oval same as other attributes
however the text of key attribute is underlined.
2. Composite Attribute
• An attribute composed of many other attributes is called a
composite attribute. For example, the Address attribute of the
student Entity type consists of Street, City, State, and Country.
3. Multivalued Attribute
• An attribute consisting of more than one value for a given entity. For
example, Phone_No (can be more than one for a given student). In ER
diagram, a multivalued attribute is represented by a double oval.
• 4. Derived Attribute
• An attribute that can be derived from other attributes of the entity type is
known as a derived attribute. e.g.; Age (can be derived from DOB). In ER
diagram, the derived attribute is represented by a dashed oval.
The Complete Entity Type Student with its
Attributes can be represented as:
3. Relationship
• A relationship is represented by diamond shape in ER diagram, it
shows the relationship among entities. There are four types of
relationships:
1. One to One
2. One to Many
3. Many to One
4. Many to Many
2. 1. One to One Relationship
When a single instance of an entity is associated with a single instance
of another entity then it is called one to one relationship. For example,
a person has only one passport and a passport is given to one person.
2. One to Many Relationship
• When a single instance of an entity is associated with more than one
instances of another entity then it is called one to many relationship.
For example – a customer can place many orders but a order cannot
be placed by many customers.
3. Many to One Relationship
• When more than one instances of an entity is associated with a single
instance of another entity then it is called many to one relationship.
For example – many students can study in a single college but a
student cannot study in many colleges at the same time.
• 4. Many to Many Relationship
• When more than one instances of an entity is associated with more
than one instances of another entity then it is called many to many
relationship. For example, a can be assigned to many projects and a
project can be assigned to many students.
or
ER Diagram for Library Management System
symbols