Lec-2: Introduction to DBMS (Database Management System) With Real life examples | What is DBMS - YouTube

Channel: Gate Smashers

[0]
Hello friends, welcome to Gate Smashers
[2]
today we are going to start with
[3]
the very first lecture of DBMS
[5]
i.e. database management system,
[7]
DBMS is a very important system
[10]
in terms of GATE exam, UGC NET exam
[13]
and other competitive exam.
[14]
Even if I say a simple thing,
[16]
in today's time for a B.tech student
[18]
and even BCA student,
[20]
DBMS is very important subject,
[23]
means you can also say that
[25]
it's very emerging subject,
[27]
means if I talk about 6-7 years ago from today,
[31]
then at that time less questions were
[33]
asked from DBMS in interviews,
[36]
but today's time Most of the questions
[38]
are being asked from the database.
[40]
The major reason for this is that
[43]
all the top companies,
[44]
the major MNC companies, which we call
[46]
Top Fifty Fortune Company like Facebook,
[50]
Google, Amazon,
[53]
So whatever major company are there,
[55]
All their work is going on on whom,
[57]
is running on the database.
[59]
All this company whose work is based on the database,
[63]
so obviously they will ask the question
[65]
from the database itself.
[67]
So that's why DBMS is a very important
[69]
subject even from the interview point of view.
[72]
so we are starting DBMS,
[74]
I am starting from the very initial level,
[77]
so first of all I have written here database system,
[80]
I am not talking about DBMS right now,
[82]
the first term I am talking about here Database system.
[85]
Database system, what is database system
[88]
as I just told about Facebook.
[90]
Even let's talk about India then Indian Railways,
[93]
if we talk about IRCTC,
[95]
then Indian Railways has its own database system,
[100]
Facebook has its own database system,
[103]
what Flipkart has, its own database system.
[106]
Now there are 2 terms in that database system,
[109]
one is database, one is DBMS,
[113]
which means database system is
[115]
comprised of two things,
[117]
one is database and another one is DBMS.
[120]
Now if I talk about database,
[122]
what is the database ?
[124]
It has absolutely simple definition,
[126]
database is a collection of related data.
[129]
here I am telling you in a very layman language
[133]
it is a collection of related data.
[140]
As the name suggests, database means
[142]
where a lot of data is collected.
[145]
But related data,
[147]
what is the meaning of related data
[149]
like we talk about Indian Railways,
[150]
IRCTC has its own database,
[153]
a very big database.
[155]
Now in that database, What will happen in that?
[157]
What happens when you log in, first of all,
[160]
like the information of the train,
[161]
means if you want to go somewhere,
[163]
then you are searching the information of the train in it.
[165]
Apart from that, what IRCTC will have,
[168]
information of the passenger,
[169]
which passengers,
[170]
Those who have ever traveled on a train
[173]
or are logged into IRCTC account.
[177]
Will they have the data of the people
[179]
from all over India.
[181]
No, what I am trying to tell you here,
[184]
that database is a collection of related data.
[187]
It is not that we club any data among themselves,
[190]
means Indian Railways cannot club the
[193]
data of Indian Passport with their data,
[195]
they have their own data base,
[199]
their own database of passport holders.
[201]
Indian railway people have their own data base,
[203]
that's why it is related data.
[206]
Now here I have further bifurcated it.
[209]
Generally database is structured & call it unstructured,
[213]
although generally it is three structured,
[215]
semi structured and unstructured.
[217]
But actually if we talk about DBMS,
[219]
then today's time, It doesn't come in so
[221]
much details in gate or UGC NET,
[223]
but you should know about
[226]
what is structured data and unstructured data.
[229]
What is structured data, such database
[231]
which I can store in any particular shape or
[236]
in a particular structure.
[239]
And unstructured means which has no
[241]
particular structure like I have written
[243]
a simple example here,
[245]
Indian railways data or university data.
[248]
Now university data or railways data,
[251]
Why it is structured because there is
[253]
a particular structure for them.
[255]
Which structures, the most important
[257]
structures are used for structured data base
[261]
that is RDBMS
[266]
(Relational database management system)
[269]
Now I am coming here on this term
[271]
database management system.
[273]
Now we are talking about that we saved the data
[276]
means I have a lot of data,
[278]
I saved the data in the backend,
[279]
in hard drives, on the servers.
[282]
Now What to do with that data,
[284]
obvouisly users will search that data,
[287]
user want to access the data,
[289]
Now they will do some updates in the data,
[291]
will insert some new data,
[293]
will delete some old data,
[295]
means they have to perform what
[298]
operation on an average,
[299]
have to do insertion means,
[301]
some data has to be added,
[302]
have to do deletion means some data has to be deleted,
[304]
have to update. Update means some old data,
[307]
like address, address of a student
[309]
was something else,
[310]
has updated means it has changed.
[312]
so we call all these things operations,
[316]
Operations
[319]
now I should have some system to
[321]
perform all these operation,
[325]
so that system we called
[327]
database management system.
[329]
So data base management system has
[332]
collection of operations
[333]
which provides easiness to the users,
[336]
so that the users can easily perform
[339]
the operations in the database,
[341]
which operations, insertion, deletion, updation
[345]
Now where can be the data,
[347]
the data may be in the remote area,
[349]
that means for example
[351]
if I am sitting in Delhi
[352]
and where is my data stored, in Mumbai.
[355]
So the data, I have nothing to do with the location,
[358]
I have to access the data
[360]
and make some changes in that data.
[361]
Means we access the data of IRCTC,
[364]
we do some reservation of train.
[367]
So we know where that data is stored, no.
[369]
Because users have nothing to do with it,
[371]
they just have to perform their operations.
[373]
And the DBMS helps them to
[376]
perform those operations.
[379]
Now DBMS also we have various,
[382]
different- different companies have been
[383]
created different-different database management system
[386]
like, if I tell a simple example, Microsoft,
[388]
Microsoft corporation has made SQL server,
[391]
Oracle people have also made different
[393]
versions of SQL server 2005, 2008, 2010,
[396]
2016, various different version,
[399]
same oracle has 2009, 2011, 2012 C, 2016,
[403]
different versions, similarly with my SQL,
[406]
its belongs to Oracle and DB2,
[409]
its DBMS of IBM to manage the data,
[415]
Now here we are talking about structured data,
[417]
I am only focusing only on structured data
[420]
out of this whole
[422]
because what I told, structured data is
[425]
such data Which has proper structure to store the data
[428]
and that structure is relation.
[435]
Relation means table,
[438]
means we stored structured data
[441]
in which format,
[444]
in table format. Table means,
[446]
even if you do not know about it,
[449]
no problem,
[450]
I am explaining it in a very simple point of view,
[453]
means if you have seen the excel file,
[457]
there are columns amd rows,
[460]
you can compare that with it.
[462]
Means what is a table,
[464]
in which there are some columns
[466]
and different different rows.
[469]
Now technically we call this table, relation.
[473]
But what is my point is that
[476]
how we store data structure data
[481]
can also have different ways
[483]
but the most useable method is relation,
[487]
means how to store data in relation form,
[490]
in table form.
[492]
Now when I am storing the data in the form of relation
[495]
then obviously I also need some management system,
[500]
i need some platform
[502]
which support the relation.
[505]
Means whenever the user access the data,
[507]
it show the relation.
[509]
whenever users store data,
[511]
it goes and store the data in the relation,
[514]
like IRCTC.
[516]
Now if you remember that
[517]
you have ever logged in to IRCTC,
[519]
then you first check it,
[521]
when you enter the source and destination,
[524]
then you will get the information of all the trains,
[526]
And it comes in which format,
[528]
it comes in the table format,
[529]
in which first column is train number,
[531]
train name
[533]
& also different like number of compartment,
[535]
apartments, type of seats, departure time,
[539]
departure date, different databases have their own columns.
[543]
we're not talking about that right now.
[546]
We are talking in simple format,
[547]
whom I am talking about here,
[551]
only structured data. Because in B.Tech
[554]
which we study RDBMS
[555]
(Relational Database Management System),
[557]
in that all we are focusing on, on whom,
[560]
the structure. In GATE also questions comes from this,
[564]
in UGC NET, even in all the competitive
[566]
exams the questions comes on structure data,
[568]
and how to store structured data,
[571]
in the form of relation.
[572]
Now storing the relation and accessing it,
[576]
What do I need, Management System.
[579]
So what is a DBMS? A Management System,
[581]
but for whom? for relation.
[584]
So that's why a new term has come from
[586]
here RDBMS,
[589]
that is relational database management system,
[594]
so this is our subject
[595]
i.e. relational database management system,
[599]
a system where we can perform, insert,
[601]
delete, update many operations.,
[605]
but on whom will we perform?
[607]
On relations.
[609]
So this is the basic introduction of the RDBMS.
[613]
I forget to explain about unstructured data actually,
[616]
unstructured data means
[618]
data which does not have
[620]
any particular structure to store it,
[622]
means there is no predefined structure
[624]
where I can store that data. Why ?
[626]
Because the majority of the data in the
[629]
unstructured data are like photos, videos,
[633]
which do not have any particular format.
[635]
As i am talking about a web page,
[637]
what is in a web page,
[638]
web page is a collection of photos, videos, chats
[643]
they do not have any particular format,
[646]
they can be in any format.
[648]
It may means that the web page first
[650]
contains the video, then your image,
[652]
then some text in it or maybe
[654]
the first few paragraphs came.
[655]
But structured data will always be in a
[658]
particular format and what is its format?
[661]
Table.
[662]
We are not talking about unstructured data
[665]
because our main topic is,
[667]
our subject is RDBMS is working only on structure data.
[671]
This is just a extra thing,
[674]
I just want to explain to you.
[675]
And another one point is,
[677]
if i talk about today's time,
[679]
90% of the data on the Earth is actually
[683]
unstructured.
[685]
So all the technologies in today's time,
[688]
the maximum technologies are coming
[690]
on the unstructured data,
[693]
But this doesn't mean that structure data is closed,
[696]
structured data is also exist.
[697]
But most of the technologies are on
[699]
unstructured data which is being used
[701]
the most at today's time,
[702]
like if i tell a simple example then
[704]
If we talk about big data or Hadoop,
[707]
we use all these terms in unstructured data.
[711]
But here i will explain only about
[714]
structured data and RDBMS
[716]
in further videos.