Inbound 1539866311090508568
Inbound 1539866311090508568
Part - II
Answer the following questions: (2 Marks)
5. What is normalization?
Normalization reduces data redundancy and improves data integrity. It is an integral part
of RDBMS. It was first proposed by Dr. Edgar F Codd , Therefore these rules are known as
E F Codd Rules.
Part - III
Answer the following questions: (3 Marks)
An example of the Object model is Shape, Circle, Rectangle and Triangle are all objects in
this model.
Circle has the attribute radius.
Rectangle has the attributes length and breadth.
Triangle has the attributes base and height.
The objects Circle, Rectangle and Triangle inherit from the object Shape.
Relational Model
The Relational Database model was first proposed by E.F. Codd in 1970 . Nowadays, it is
the most widespread data model used for database applications around the world.
It represents the data in the form of in relational model is tables (relations).
All the information’s related to a particular type is stored in rows of that table. Hence
tables are also known as relations in a relational model. A relation key is an attribute
which uniquely identifies a particular tuple (row in a relation (table)).
Table A Table B
Studno Name Subid Subject
cs1 Bala S1 Bigdata
cs2 Ganesh S2 Python
Object model:
Object model stores the data in the form of objects, attributes and methods, classes
and Inheritance.
It handles more complex applications, such as Geographic information System (GIS),
scientific experiments, engineering design and manufacturing. It is used in file
Management System.
It represents real world objects, attributes and behaviors. It provides a clear modular
structure. It is easy to maintain and modify the existing code.
An example of the Object model is Shape, Circle, Rectangle and Triangle are all objects in
this model.
Circle has the attribute radius.
Rectangle has the attributes length and breadth.
Triangle has the attributes base and height.
The objects Circle, Rectangle and Triangle inherit from the object Shape.
One-to-One Relationship
In One-to-One Relationship, one entity is related with only one other entity. One row in a
table is linked with only one row in another table and vice versa.
Example: A student can have only one exam number
One-to-Many Relationship
In One-to-Many Relationship, one entity is related to many other entities.
One row in a table is linked to many rows in another table.
Example: One Department has many staff members.
Many-to-One Relationship
In Many-to-One Relationship, many entities can be related with only one in the other
entity. Many row in a table is linked to only one row in another table.
Example: A number of staff members working in one Department.
Many-to-Many Relationship
In many-to-many relationship, many entities can be related to many other entities.
Multiple records in a table are associated with multiple records in another table.
Example: Many Books in a Library are issued to many students.
3. Differentiate DBMS and RDBMS.
Basis of Comparison DBMS RDBMS
Keys and indexes Does not use keys and Used to establish relationship. Keys are used
indexes. in RDBMS.
Πcourse (STUDENT)
OUTPUT:
Course
Bigdata
Python
R Language
Relational Algebra Operations from Set Theory
Example:
Table A Table B
Studno Name Studno Name
cs1 Bala cs1 Bala
cs2 Ganesh cs2 Ganesh
cs4 Veeru cs3 Rishi
Table A - B
Studno Name
cs4 Veeru
INTERSECTION (symbol : ∩)
The result of A∩B, is a relation which includes all tuples that are common in both A and
B.
Table A ∩ B
Studno Name
cs1 Bala
cs2 Ganesh
1. Hardware: The computer, hard disk, I/O channels and any other physical component
involved in storage of data
2. Software: It is a program that controls everything. It is capable of understanding the
Database Access Languages and interprets into database commands for execution.
3. Data: It is that resource for which DBMS is designed. DBMS creation is to store and utilize
data.
4. Procedures/Methods: They are general instructions to use a DBMS such as installation,
manage databases to take backups, report generation, etc.
5. Data Base Access Languages: They are the languages used to write commands to access,
insert, update and delete data stored in any database. Examples of popular DBMS: Dbase,
FoxPro
Data:
Data are raw facts stored in a computer. A data may contain any character, text, word or a
number. Ex: Name: Bala Age: 20
Information:
Information is formatted data, Here data appears as a set of words and numbers. However,
when the data is processed, organized and formatted, it gives meaningful information.
Ex: Bala is 20 years old.
Data Base Management System (DBMS):
A DBMS is a soft ware that allows us to create, define and manipulate database, allowing users
to store, process and analyze data easily. DBMS also provides protection and security to the
databases. Examples of DBMS software’s are: FoxPro, dbase.
Advantages of RDBMS
• Segregation of application program
• Minimal data duplication or Data Redundancy
• Easy retrieval of data using the Query Language
• Reduced development time and maintenance
Database Structure:
Data is stored into tables, created inside the database.
Table: (File)
Table is the entire collection of related data in one table, referred to as a File or Table where the
data is organized as row and column. A Table is known as a RELATION.
Row: (Record)
Each row in a table represents a record, which is a set of data for each database entry. A Row is
known as a TUPLE.
Column: (Field)
Each table column represents a Field, which groups each piece or item of data among the
records into specific categories or types of data. A Column is known as an ATTRIBUTE.