Dbms 2
Dbms 2
Dbms 2
Database is an organized Collection of interselect data, which helps in insertion, deletion and sorting
Data efficiently. The database is also used to organize the data as information in the form of table
view using the database you can easily access update or delete any information.
DBMS:
Data base management system is s/w used for creating and merging the data in the database easily
and efficiently. It is basically a set of program that allows users to store, modify or update and
retrieve info from the database as for the requirement.
DBMS provide security and protection to the database. DBMS acts as a middle layer b/w the
database and user.
Ex - My SQL, My SQL Server, microsoft SQL server are different type of DBMS
Characteristics of DBMS:There are some characteristic of DBMS, which are given below-
Advantages of DBMS:
minimal data redundancy or data duplicacy.
Easy access to data from database using query
DBMS provide backup and recovery method which Create an automatic backup of data from
software and hardware failures and stores the data if required.
minimized data consistency.
Better data integration
DBMS can apply integrity Constant to the data database.
DBMS incent consistency and reduces updating.
Disadvantage of DBMS:
A DBMS is complex and time consuming to design.
Cost of h/w & s/w is high to sum DBMS s/w.
DBMS Consume a large amount of main memory as well as huge amount of disk space to make it run
efficiently.
if the database is damaged because af any h/w or s/w failure, all the application Program will be
implecty effected which are dependent on it.
Initial training is required for all the users and programmers to use DBMS Software.
Components/Elements of DBMS:
(i) Software: The main component of DBMS is Software. Set of program which is lised to manage
Database and the control the overall computerized database.
The DBMS Software provide as an easy to use interface to store ,retrieve and update data in the
database.
This Software components is capable at understanding the database access language and convert it
into actual data base and to execute or run them on the database.
(ii) Hardware: This component of the DBMS Consist of a set of physical electronic devices such as
Computers. I/O Channels, Storage devices, etc that creates an interface between Computer & users.
The DBMS Component is used for keeping & storing the data in the database.
(iii) procedure: procedure refers to general, rules & instruction that helps to design the database
and to the DBMS. procedure are use to setup & install a new DBMS to login & logout at DBMS
Software to merge DBMS or application program to take up at the database and to change the
structure of the database etc.
(iv) Data: It is the most important component of DBMS. the main task of DBMS is to process the
data, How DBMS are designed or defined constructed and from the data the database contains
both.
(v)User: The user are the people who control & manage the database and perform different type of
operation on the database is DBMS. there are three type of user who play different role.
(a) Application programmer: The user who write the application programs in programming language
(such as Java, C++, Python, VB etc) to interact with database are called Application programmer.
(b) DBA: A person who manages overall DBMS, is Called DBA
(c) End user: The end user are those who interact with the DBMS to perform different operation by
using the different Database and such as insert, update. delete & retrieve from the data.
Data Models
Data models are the models explaining the logical structure of the Database system. They describe
the entity, attributes, relationship among the data elements of the specific data space.
Data model organize the description and consistency constraints after the complete
implementation of the database. these models show how the data represented to each other. and
how they are stored accessed and update inside the database System.
Advantages:
• It is very simple and fast to traverse through a tree-like structure.
• Any change in the parent node is automatically reflected in the child node so, the integrity of data
is maintained.
Disadvantages:
• Complex relationships are not supported.
• As it does not support more than one parent of the child node so if we have some complex
relationship where a child node needs to have two parent node then that can't be represented using
this model.
• If a parent node is deleted then the child node is automatically deleted.
This paradigm is an expansion of the hierarchical model. It was the most prevalent model prior to
the relational model. The main difference between this model and the hierarchical approach is that a
record can have several parents. It replaces the hierarchical tree with a graph. In the sample below,
we can see that node student has two parents, CSE Department and Library. This was previously not
allowed in the hierarchical model.
Advantages:
• When compared to the hierarchical approach, data may be obtained more quickly. This is because
the data in the network model is more linked and there may be more than one path to a certain
node. As a result, the information may be accessed in a variety of ways.
• Data integrity is present since there is a parent-child connection. Any changes made to the parent
record are mirrored in the child record. Advantages of Network Model Disadvantages of Network
Model
Disadvantages:
• As additional relationships are added, the system may get increasingly complicated. To operate
with the model, a user needs have full understanding of it.
• Any modification, such as an update, deletion, or insertion, is quite difficult.
Disadvantages :
• Hardware Overheads: For hiding the complexities and making things easier for the user this model
requires more powerful hardware computers and data storage devices.
• Bad Design: As the relational model is very easy to design and use. So the users don't need to know
how the data is stored in order to access it. This ease of design can lead to the development of a
poor database which would slow down if the database grows.
Advantages:
• Simple: Conceptually ER Model is very easy to build. If we know the relationship between the
attributes and the entities we can easily build the ER Diagram for the model.
• Effective Communication Tool : This model is used widely by the database designers for
communicating their ideas.
• Easy Conversion to any Model : This model maps well to the relational model and can be easily
converted relational model by converting the ER model to the table. This model can also be
converted to any other model like network model, hierarchical model etc.
Disadvantages:
• No industry standard for notation: There is no industry standard for developing an ER model. So
one developer might use notations which are not understood by other developers.
• Hidden information: Some information might be lost or hidden in the ER model. As it is a high-level
view so there are chances that some details of information might be hidden.
• Object-oriented databases are classified into numerous types: A multimedia database contains
media, such as photos, that would be impossible to store in a relational database.
• Any object in a hypertext database can link to any other object. It is effective for organizing a large
amount of heterogeneous data, but it is not perfect for numerical analysis.
• Because it integrates but is not limited to tables, the object-oriented database model is the most
well-known post-relational database paradigm. These types of models are often known as hybrid
database models.
Advantages:
• Complex data sets can be saved and retrieved quickly and easily.
• Object IDs are assigned automatically.
• Works well with object-oriented programming languages.
• Semantic content is added
• Support for complex objects
• Visual representation includes semantic content
Disadvantages:
Advantages:
Disadvantages:
Functional Dependency:
The functional dependency is a relationship that exists between two attributes. It typically exists
between the primary key and non-key attribute within a table.
(i).X → Y
Types of Functional dependency: there are six types of functional dependency in dbms which are
given below:-
1.Trivial functional dependency
2.Non-Trivial functional dependency
3.Multivalued functional dependency
4.Transitive functional dependency
42 abc 17
43 pqr 18
44 xyz 18
42 abc 17
43 pqr 18
44 xyz 18
42 abc 17
43 pqr 18
44 xyz 18
45 abc 19
42 abc CO 4
43 pqr EC 2
44 xyz IT 1
45 abc EC 2