Suraj
Suraj
Suraj
Introduction to DBMS.
A Database Management Software (DBMS) is used for storing, manipulating, and managing
data, such as format, names of fields, and record and file structures in a database. Users can
construct their own databases using a DBMS to satisfy their business requirements. For
example, dBase was one of the first DBMS for the micro-computers.
To interact with a database, a DBMS package generally uses SQL queries. It receives a
command from a database administrator (DBA) and prompts the system to perform the
necessary action. These instructions can be about loading, retrieving, or modifying existing
data in the system.
Database management software features data independence, as the storage mechanism and
formats can be changed without altering the entire application within the database. Some
common examples of popular, free business database software include MySQL, Microsoft
SQL Server, Microsoft Access, Oracle, IBM DB2, and FoxPro. For example, MySQL, free
business database software, is a high-performance database software that helps enterprise
users build scalable database applications.
Main Features of a DBMS
In a database, the chances of data duplication are quite high as several users use one database.
A DBMS reduces data repetition and redundancy by creating a single data repository that can
be accessed by multiple users, even allowing easy data mapping while performing ETL.
Most organizational data are stored in large databases. A DBMS helps maintain these
databases by enforcing user-defined validation and integrity constraints, such as user-based
access.
· Enhanced Security
When handling large amounts of data, security becomes the top-most concern for all
businesses. Database management software doesn’t allow full access to anyone except the
database administrator or the departmental head. Only they can modify the database and
control user access, making the database more secure. All other users are restricted,
depending on their access level.
There are several types of database management software, which can be broadly classified
into four types. The most popular database management systems include:
1- Hierarchical
A hierarchical DBMS organizes data in a tree-like arrangement, in the form of a hierarchy,
either in a top-down or bottom-up design. The hierarchy is defined by a parent-child
relationship, where a parent may have numerous children, but children can only have a single
parent.
This type of DBMS commonly includes one-to-one and one-to-many relationships. A one-to-
one relationship exists when a parent has a single child. Whereas, in a one-to-many
relationship, a parent has multiple children.
2- Network
A network DBMS is a slightly complex extension of hierarchical DBMS in which data has
many-to-many relationships that appear in the form of a network. The records are arranged in
a graph that can be accessed via numerous data paths.
In this database structure, a child can have multiple parents. Therefore, it allows you to model
more intricate relationships. The ability to build more relationships among different data
types makes these databases more efficient.
3- Relational
A relational model is one of the most extensively used arrangements of organizing databases.
It normalizes data and organizes it as logically independent tables. You can perform
operations like “Select” and “Join” on these tables. The data is stored in fixed structures and
manipulated using SQL.
Shared data depicts relationships between different tables. As data in a table can reference
similar data in another table, it preserves the reliability of the connections between them. This
is called referential integrity, which is a critical concept in this database model.
Advantages of a Database Management Software
A DBMS allows users (onsite as well as remote) to easily share the data by following the
correct authorization protocols. It provides operators access to well-managed data. As a
result, they can rapidly respond to variations in the environment.
The threats of data security breaches become more pronounced when several users access the
database. A database management software offers better implementation of data
confidentiality and safety guidelines through controlled user access.
A DBMS stimulates an integrated view of the company’s data. The company can quickly see
how activities in one division of the organization influence other divisions.
Better Decision-Making
One of the uses of database management software is to provide access to well-managed data,
making it possible for users to make accurate and timely decisions. It offers a streamlined
framework to enable data quality initiatives, improving data management procedures and
yielding better-quality information.
Improved Efficiency
Streamlined data access, along with the tools that convert data into valuable information,
enable operators to make swift, knowledgeable decisions. This improves a database’s
performance and efficiency.
Banks: Storing client info, account activities, disbursements, credits, and mortgages
Airlines: Flight bookings and scheduling info
Academies: Learner info, course registrations, grading, and result
Telecommunication: Keeping call archives, monthly bills, and retaining balances.
Economics and Finance: Storing data about bonds, transactions, and acquisitions of
fiscal instruments, such as shares and stocks
Sales and Marketing: Storing data about consumers, merchandises, and sales
Engineering and Manufacturing: Managing supply chain, and pursuing
manufacturing of items and inventory statuses in storerooms
Human Resources: Keeping records about workers, remunerations, payroll,
deduction, generating salaries, and more
All of these applications of database management software are also often called database
management software examples and they serve the same purpose i.e. to help beginners
understand the importance of DBMS and their use cases.
PRACTICAL – 2
INTRODUCTION TO SQL
Introduction to SQL
Structure Query Language (SQL) is a database query language used for storing and
managing data in Relational DBMS. SQL was the first commercial language introduced
for E.F Codd's Relational model of database. Today almost all RDBMS (MySql, Oracle,
Infomix, Sybase, MS Access) use SQL as the standard database query language. SQL is
used to perform all types of data operations in RDBMS.
SQL Command
This includes changes to the structure of the table like creation of table, altering table,
deleting a table etc. All DDL commands are auto-committed. That means it saves all the
changes permanently in the database.
DML commands are used for manipulating the data stored in the table and not the table
itself. DML commands are not auto-committed. It means changes are not permanent to
database, they can be rolled back.
These commands are to keep a check on other commands and their affect on the database.
These commands can annul changes made by other commands by rolling the data back to
its original state. It can also make any temporary change permanent.
DCL: Data Control Language
Data control languages are the commands to grant and take back authority from any
database user.
Data query language is used to fetch data from tables based on conditions that we can
easily apply.
DATATYPES
A data type specifies a particular type of data, such as integer, floating-point, Boolean etc.
CHAR [(size [BYTE | Fixed-length character data Maximum size is 2000 bytes
CHAR])] of length size bytes or or characters. Default and
characters. minimum size is 1 byte.
Practical – 3
AIM- To create the table and insert values into it and show table using SELECT command
Practical – 4
AIM- To use WHERE clause for showing the table with condition select * from table name where
anything stored.
Practical -5
Aim:-to use filtering data from data base using employee873 table