M1092187-RDBMS Assignment
M1092187-RDBMS Assignment
5.What is database?
Ans:
- A database is an organized collection of data, so that it can be easily
accessed and managed. You can organize data into tables, rows, columns,
and index which makes it much easier to use and to find the relevant data’s
which are needed in the function. It basically specialized and used for rapid
search and retrieval by a computer.
6.Mention the issues with traditional file-based systems that make DBMS a
better choice?
Ans:
Traditionally, the file system was used for data management. Data was
stored in files and users access those files directly by going at the location
of the file physically. But things become harder when the amount of data
stored in the files get increased. If there are too many files you are not
going to go through it one by one practically, No. which shows us that It is
very tedious and next to impossible process.
when we are having some online or digital data, then we store our data in
some database and one of the particular software is used to handle the
database. So, there is a lot of difference between the traditional file system
and the Database Management System. File System is basically referring
to a traditional way of storing data where the user saves the file manually
at any location. It is an easy way to store texts, audio, video but here
security is a major concern.
The options which are given by the operating system in the name of
security are very limited. Only options which we have are locks and hidden
files. Also, these files are very hard to maintain and users manually go to
these locations to access these files. So, there were many problems with
this file system.
Problems with the traditional file system Data Redundancy, In a file system
is that there are high chances of data duplicity. Same data may be stored
multiple times. For Example, We have an employee who is working on two
projects. So, we might end up storing the information of that employee
twice, which may lead to increased storage.
Data Inconsistency is something we face in this process which shows that
data redundancy is the main cause of data inconsistency.
In the above example, let us suppose we need to change the mobile
number of the employee and we change it in one place but we forget to
edit it at another place. This would lead to data inconsistency because in
future if we refer to this data we would not know which one is correct and
which one is wrong. For having the correct data you need to store the same
data at both places and this is a very bad thing to do.
We face a low security issue in this file system. Anyone having access to
the files can see all the data. There is no role-based access control i.e there
is no method by which some authenticated people would have access to all
data and others would have access to only limited data.
There are some of the attributes of accessing files from a file system which
refers to metadata which means data about data. If we want to access any
file in the file system then we require the name of the file, its address,
permissions etc. All these are not easy to remember and also not user-
friendly. Example: If we need to access any file, we need to provide its full
location like Desktop/AfterAcademy/DBMS/FileSystemVsDBMS/. No
Concurrent Access: If multiple users access the data at the same time then
there might be some data inconsistency.