B.tech - V - KCS501 - Unit 1 - 1 Notes
B.tech - V - KCS501 - Unit 1 - 1 Notes
B.tech - V - KCS501 - Unit 1 - 1 Notes
What is Data?
Data is nothing but facts and statistics stored or free flowing over a
network, generally it's raw and unprocessed. For example: When you
visit any website, they might store you IP address, that is data, in return
they might add a cookie in your browser, marking you that you visited
the website, that is data, your name, it's data, your age, it's data.
Data becomes information when it is processed, turning it into
something meaningful. Like, based on the cookie data saved on user's
browser, if a website can analyse that generally men of age 20-25 visit
us more, that is information, derived from the data collected.
What is a Database?
A Database is a collection of related data organised in a way that data
can be easily accessed, managed and updated. Database can be software
based or hardware based, with one sole purpose, storing data.
The Database is an organized collection of structured data to make it
easily accessible, manageable and update. In simple words, you can
say, a database is a place where the data is stored. The best analogy is
the library. The library contains a huge collection of books of different
genres, here the library is database and books are the data.
During early computer days, data was collected and stored on tapes,
which were mostly write-only, which means once data is stored on it,
it can never be read again. They were slow and bulky, and soon
computer scientists realised that they needed a better solution to this
problem.
Larry Ellison, the co-founder of Oracle was amongst the first few,
who realised the need for a software based Database Management
System.
What is DBMS?
DBMS stands for Database Management System. We can break it
like this DBMS= Database + Management System. Database is a
collection of data and Management System is a set of programs to
store and retrieve those data. Based on this we can define
DBMS like this:
A DBMS is a software that allows creation, definition and
manipulation of database, allowing users to store, process and analyse
data easily. DBMS provides us with an interface or a tool, to perform
various operations like creating database, storing data in it, updating
data, creating tables in the database and a lot more.
DBMS also provides protection and security to the databases. It also
maintains data consistency in case of multiple users.
Here are some examples of popular DBMS used these days:
MySql
Oracle
SQL Server
IBM DB2
PostgreSQL
Amazon SimpleDB (cloud based) etc.
What is the need of DBMS?
Database systems are basically developed for large amount of
data. When dealing with huge amount of data, there are two things
that require optimization: Storage of data and retrieval of data.
Storage: According to the principles of database systems, the
data is stored in such a way that it acquires lot less space as the
redundant data (duplicate data) has been removed before storage.
Let’s take a layman example to understand this:
In a banking system, suppose a customer is having two accounts,
one is saving account and another is salary account. Let’s say
bank stores saving account data at one place (these places are
called tables we will learn them later) and salary account data at
another place, in that case if the customer information such as
customer name, address etc. are stored at both places then this is
just a wastage of storage (redundancy/ duplication of data), to
organize the data in a better way the information should be stored
at one place and both the accounts should be linked to that
information somehow. The same thing we achieve in DBMS.
Fast Retrieval of data: Along with storing the data in an
optimized and systematic manner, it is also important that we
retrieve the data quickly when needed. Database systems ensure
that the data is retrieved as quickly as possible.
Advantages of DBMS
Segregation of applicaion program.
Minimal data duplicacy or data redundancy.
Easy retrieval of data using the Query Language.
Reduced development time and maintainance need.
With Cloud Datacenters, we now have Database Management
Systems capable of storing almost infinite data.
Seamless integration into the application programming languages
which makes it very easier to add a database to almost any
application or website.
Disadvantages of DBMS
It's Complexity
Except MySQL, which is open source, licensed DBMSs are
generally costly.
They are large in size.
DBMS vs. File System