background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "3. Использование баз данных. Запросы | Технострим"

input logo icon
Video tags
|

Video tags

технопарк
техносфера
технотрек
техноатом
технополис
mail.ru
мейл.ру
лекции по программированию
как программировать
уроки программирования
как начать программировать
курсы программирования
веб разработка
мобильная разработка
frontend
backend
фронтенд
бэкенд
c++
java
джава
субд
базы данных
анализ данных
информационный поиск
perl
перл
линукс
linux
data mining
hadoop
технострим
го
go
oh my code
my code
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:04
so the earring is our topic who knows no
00:00:08
of course not if you're watching
00:00:11
what is written
00:00:13
that's exactly what is not true here too
00:00:16
answers correctly who was at the 1st lecture
00:00:19
where he told me the plan and like the most
00:00:23
attentive of those who were accurate
00:00:29
of course that's why I wrote here
00:00:31
today look I will teach you to write
00:00:33
request what is this as I said in
00:00:37
relational databases
00:00:38
two important things about this diagram when you
00:00:41
you can create some objects in the database
00:00:43
data and we talked a little about the project in
00:00:46
last time, how's everything according to the signs?
00:00:48
this is to sort and and the second actually
00:00:54
in fact, even more important than the diagram
00:00:56
is it select and why is it more important because
00:01:00
most likely you will encounter
00:01:02
completely different systems
00:01:05
relational databases there with
00:01:08
complex and so on and they all have
00:01:11
the interface for you will be writing
00:01:13
selecta
00:01:14
if you ever become I don't know
00:01:16
analytics by the manager there by anyone in
00:01:21
eventually you will have some
00:01:23
the data is somewhere, I know where, but more often
00:01:26
in all you will address them as
00:01:30
at least in selecta similar form therefore
00:01:34
today I will tell you everything that
00:01:36
I know about select and
00:01:37
and teach and teach you really thinks
00:01:40
a little bit more relational than you
00:01:42
got used to it, that's actually the most important thing
00:01:45
Today we will look at this whole course
00:01:48
everything I know is most likely from designs
00:01:49
selector I call you to this
00:01:52
wonderful board so I'm not the only one here
00:01:54
you wrote too
00:01:56
and next time I will bring you problems 10
00:02:01
I will distribute them in pairs of different problems and
00:02:07
try writing something yourself
00:02:09
straight guy we'll check it out
00:02:11
and let’s look at it, but everyone calls it clear
00:02:14
select and let's begin, I'm afraid to start writing
00:02:19
I can't write, wait
00:02:23
oh my god my pencil everything is so right here
00:02:32
I'll start writing and now it's cool
00:02:36
select
00:02:39
school
00:02:48
buy
00:02:52
look, it’s easier to write in chalk, my handwriting
00:02:58
Of course it’s special, it’s clear now
00:03:03
look I do it like this, fire yeah
00:03:13
this gives me a little shock
00:03:20
the wonderfulness of us is such means
00:03:21
let's try the telly with knowledge
00:03:23
actually apply it practically
00:03:25
all standard
00:03:27
the words in the claim or are they written exactly in
00:03:33
in this order today we are all of them
00:03:35
We'll look at it and try to figure it out
00:03:38
Let's start with the order let's say it
00:03:45
I’ll write right away to write out the climate
00:03:48
Of course it bothers me a little
00:03:54
1 first thing to do with tie it carts
00:03:58
Always
00:03:59
about the second filters 3 coarse
00:04:05
lay on you 4 having now unusual
00:04:09
select and the fifth and sixth are executed
00:04:13
condition
00:04:14
or part of a buy order request, all of that is us
00:04:16
let's leave now let's start from the top
00:04:20
down they are from order and then about order
00:04:22
I'll also tell you something
00:04:24
your own select select actually
00:04:26
very simple in the simplest form there will be
00:04:31
just listing the fields of which you
00:04:33
you want to choose let's say
00:04:37
select, they can all be separated by commas
00:04:43
not only names can be acceptable
00:04:46
constants and let's say a moment
00:04:54
may actually be an expression
00:04:59
some yes, let's say one plus three with
00:05:07
It’s clear that I just called it that
00:05:10
you can write it like this
00:05:16
look
00:05:20
1 equals 1 + 3
00:05:24
some versions of the database already support it
00:05:26
that is, roughly speaking, using c to call a
00:05:28
through name equals
00:05:30
and the expression can be in the gti village right in
00:05:34
selecta expression
00:05:35
write under select, yes and
00:05:41
age up to this will be the expression one plus
00:05:47
three everything's right look it's just me
00:05:49
I say let’s say now watch this
00:06:00
means no matter how many rows from here I would not return
00:06:02
how quickly turned in the column under
00:06:05
the name of the nickname will always be a letter, but
00:06:09
so that is, if they return it, let’s say
00:06:12
if you are here there is no verification
00:06:14
I return all the lines from table a and
00:06:17
I say that I will return
00:06:18
then for some reason I’ll call everyone’s name and everyone
00:06:22
I will say that they are all 4 year olds twice and
00:06:26
then there’s another field, I understand, no I
00:06:31
I don't do anything from the table and it's just me
00:06:34
I return some data in table a
00:06:37
there is already data, it’s obvious what’s there
00:06:40
at least there is no I invented them
00:06:45
before in the results I say that look I
00:06:48
from the sign and I choose the name here on
00:06:51
they care
00:06:53
then I say that my results are
00:06:55
if you have a nickname column
00:06:57
which in fact will always be
00:06:59
contain a or let's say look you can
00:07:01
write like this like this blue
00:07:04
and that is, I kind of just choose a nickname
00:07:09
I’m adding a letter, but there I can even
00:07:15
write something on request
00:07:19
here I don’t know frome guru well
00:07:33
Let's say there's some kind of VR to write there
00:07:36
boom boom boom boom it doesn't matter
00:07:39
there is a gti in the village itself only in the
00:07:41
village gti can be under select that is
00:07:44
you're actually practically practically
00:07:46
can be built under any location
00:07:49
select that is, it’s like this
00:07:50
recursive dice select is a piece
00:07:52
select
00:07:54
this plus minus is understandable, most likely there
00:08:03
he will only take the first entry before the claim
00:08:05
one field but if you wrote it like that then you
00:08:09
you can write here let's say 10 limit
00:08:12
money here the choice is only a group or
00:08:14
let's say you always return the filter
00:08:15
but the entry in general is most likely there
00:08:17
recording you later a little more about
00:08:20
We'll talk about that a little further
00:08:22
let's move forward with this, it's clear that it's simple
00:08:24
select is you how you in you choose
00:08:27
some speakers
00:08:30
give me a name, yes, here, yes, that is, you
00:08:49
you say that in fact I have
00:08:50
there is a name there is no there is something else and
00:08:53
let's say you want a group of people
00:08:56
pull it out and you can do it right here
00:08:59
define it right here in the title
00:09:09
yes in this example in this example exactly
00:09:14
then in this example you we will take them
00:09:16
then to and menu we will add and make from
00:09:19
his nickname there and from the bar and so on we
00:09:24
add the letter a and call it nickname do
00:09:28
it's actually possible and simple
00:09:30
rename yes, that is, you can write
00:09:32
here here name is there m2
00:09:37
yes it was cool if I own it
00:09:45
I’ll just be here, it’s not brutal, it’s clear
00:09:47
with this piece come on Igor or
00:09:51
Lyokha
00:09:53
here in this select and it’s no longer there, of course
00:10:00
yes, look, you are forming a request in your
00:10:12
the table contains data about how long you are here
00:10:14
columns you request so many you will return
00:10:16
you really need so much
00:10:18
actually ask for exactly as much as you want
00:10:20
need to, well, this is one plus 34 new type of edge
00:10:32
yes, that is, age, well, the edge
00:10:37
one is still the same will be simple
00:10:41
another way to call it just syntax
00:10:42
another one can be written like this and like this
00:10:43
just write a little, look what
00:10:46
It’s also important to write it simply like this
00:10:49
you can usually find such a request
00:10:51
select
00:10:52
asterisk what does it mean
00:10:56
let's somehow know this correctly
00:10:59
throw away the ecology that is where
00:11:03
yeah now it went further 3 points but
00:11:08
if we do some kind of john here
00:11:10
then boom boom boom boom boom
00:11:13
then in fact it will be an asterisk
00:11:15
mean all signs in general that
00:11:17
got tied up network that is she
00:11:20
include this sign whining about Jaina
00:11:25
we'll talk a little later boom boom boom
00:11:27
boom boom boom boom boom class still fire
00:11:30
but select asterisk is considered anti
00:11:33
pattern in database use
00:11:35
why oh yes why long why is this
00:11:38
maybe longer but a lot of extra stuff
00:11:43
that's right Lyokha you should ask exactly
00:11:44
what you need, as it were, and then you have it
00:11:46
you get it faster, just not always
00:11:48
faster than but then the likelihood is
00:11:51
that you will get it faster than
00:11:54
something that always gave up everything
00:11:55
so you need to try in quantity
00:11:59
lines ask for what you need and accordingly
00:12:02
quantity yes but in the data ask for what
00:12:06
necessary but that's it so what else is there in the village
00:12:09
gti has a cool design something like
00:12:14
simple ifa is called a case that is
00:12:17
you can write like this in Kyiv
00:12:20
write you say we are equal to Sergey D
00:12:36
godmother wells
00:12:45
but it’s no use but it’s too long to write just news
00:12:49
yes m d ap
00:12:55
well I see what it is
00:12:59
the simplest option iv and that is, if you
00:13:02
want to
00:13:05
generate some column in
00:13:08
depending on the values ​​in this column
00:13:10
Well, in Excel, everything was already written there, it’s given
00:13:13
because it's theirs and there's something there
00:13:16
tint red if there is less there
00:13:19
20 paint green if more than a hundred
00:13:22
it's the same design but actually
00:13:26
in fact, with the help of the operator the case can
00:13:28
do it simply
00:13:29
the magic date may be right in it Sergei
00:13:33
equal to Alexey event on his
00:13:36
as well as mountains and nested cases
00:13:39
may also be yes there v.n. and here
00:13:43
again the case is pum-pu-rum-pu-pum in general
00:13:45
completely all humidity is maintained
00:13:49
that's practically all you need to know about
00:13:53
select we still have everything up to the value up
00:14:02
I'm the right one you can take and that's all
00:14:08
this request so I'll try it now
00:14:12
you can do it right here, you can take it
00:14:13
delete
00:14:19
so wait, not exactly like me
00:14:25
wanted so so so so so now oh so
00:14:38
I’ll take this and add it later, it’ll be shorter here
00:14:49
so well so let's switch to a pencil
00:14:53
hide the pencil and write here no VAT
00:15:00
you know the status yes it will be from another one
00:15:06
status column which is for earrings
00:15:11
what is their status quo for you Igor here
00:15:14
so just invaded from the bad and select
00:15:19
it turned out bad that's cool because yes
00:15:29
yes yes they should be one yes they should
00:15:32
be the same type you're not really
00:15:34
should actually enter these
00:15:36
almost always under this on this
00:15:38
here the parameters will find the most common of them
00:15:40
like, well, it will fall if you start here
00:15:44
someone's completely incomprehensible fold
00:15:47
this is actually practically all
00:15:50
what you need to know about what is possible
00:15:52
everything is easier to write
00:15:53
but remember that this statement is executed
00:15:56
only number five is practically the last
00:15:59
so now I'm all like this nothing
00:16:06
remains magic magic magic now no
00:16:13
I live, I need this in general
00:16:15
fundamentally the position is generally difficult
00:16:18
copy to clipboard there is something not yet
00:16:21
so not so cool so so since
00:16:24
where is 5th grade in short, look now
00:16:29
moving to below
00:16:30
the front is the coolest thing in general up from
00:16:36
in its simplest form we just have them there
00:16:39
signs
00:16:40
correctly let's say in our case a student
00:16:46
the student understands that you can do this right away
00:16:49
let's call something on signs
00:16:52
let's call it fps what else could it be
00:16:55
frame it is clear that fromes are as if
00:17:00
the source from which we select this data
00:17:02
yes, that’s where we get these speakers from
00:17:04
in fact you actually can
00:17:05
imagine how big you are
00:17:09
somehow type this big
00:17:10
wide table in excel and from different
00:17:13
x tables or from different excel sheets you
00:17:16
pick up one big one like that, vertically
00:17:19
there is a join and let's write some here
00:17:24
Eunjeong is valid for groups sg
00:17:32
linga and conditions according to John we will write where with
00:17:41
groups a and d equal to understood yes
00:17:52
look, in this example we have
00:17:54
there is a student sign there is a sign
00:17:56
groups in the chaise with student signs
00:17:59
what fields are there at least by group de
00:18:03
there exists before in the groups sign there is
00:18:06
just go to the fields
00:18:08
it’s clear what’s happening, something standard
00:18:11
what are the types of join of
00:18:16
I've heard too much inner I'll write it down
00:18:20
here inner what else are there so cross
00:18:23
I hear full I hear more
00:18:28
elevator run and
00:18:33
full left and right is actually called
00:18:35
actually outer if the lead is 200 outer
00:18:40
as if cross
00:18:41
well, we went through it, you whine as they say
00:18:44
there is a repetition of the mother of the teachings that does
00:18:47
Ann is a thing of intersection in my understanding
00:18:59
there is this value up to what the cross does
00:19:07
cool what does full do okay let's say
00:19:13
both left and right, what does the left one do?
00:19:21
table which one is she here from?
00:19:22
tables on the left we have one on top 2
00:19:24
the student on the left agrees the student on the left and
00:19:29
if you what to do well as if in
00:19:42
the second sign is roughly speaking for us
00:19:44
if you write instead of Annie rally Tue
00:19:46
there's no way back to this circle
00:19:49
the request will be returned to the student who is not there
00:19:52
there is no group and if I write the elevator will return but
00:20:01
all fields from the group table will be equal
00:20:04
why the class so now the focus is shorter
00:20:11
let's not let him in; in short, I'm writing about
00:20:18
student with
00:20:28
cross join
00:20:33
groups with SGV
00:20:38
[music]
00:20:39
this is the USSR with a guru
00:20:46
id equals mount id what's the difference
00:20:56
for a long time, leave where you are not
00:21:02
look firstly the blood and it is not needed
00:21:04
it's clear why because you don't need it
00:21:10
you don't care about such speakers
00:21:12
In general, you connect in a Cartesian way
00:21:14
product of all rows on the left by Cartesian
00:21:16
I’ll jump, that is, all the construction sites on the left to everything
00:21:19
combinations of a string you just go through
00:21:21
combinations here he sort of filters
00:21:25
yes, here he tells you that
00:21:28
please find it for me from the tablet
00:21:31
students on Dima such groups have
00:21:35
group go will be equal from group
00:21:37
connects lips you will put it like that
00:21:40
fit in this way
00:21:41
cross doesn't need this, but there is something here
00:21:48
difference between 2 queries, will there be a difference?
00:21:51
output data
00:21:59
some name is Jane you're right I think that
00:22:04
these requests, well, if there is a scorching one to choose
00:22:06
it is clear that they will eventually
00:22:09
will return the same number of rows but
00:22:14
there's no need to write it like that, it's true
00:22:19
depends on the optimizer yes that is it
00:22:21
will understand that you are, as it were, not quite as if
00:22:23
well written then he will do it
00:22:26
in old versions of the database it was possible
00:22:29
write in general like this in short from you
00:22:36
dance
00:22:38
attention, groups and more are already here
00:22:44
install the version and it’s like
00:22:48
implied that you are doing cool and
00:22:52
people wrote like this energy also don’t do that
00:22:57
doing it is simply not very transparent when
00:23:00
you will be from student 5 tables
00:23:02
separated by commas and then in five like that
00:23:06
or 15 some conditions, this is understandable
00:23:11
guys got it cool so besides from a
00:23:25
this is from besides join of which we are talking about
00:23:29
we talked a little here maybe
00:23:32
of course, just on request
00:23:35
I don’t know what kind of select there is
00:23:41
again the deadline even if there is also a sign
00:23:48
student in no matter
00:23:57
let's say nickname is equal to best, just needed
00:24:06
I have to call it I don’t know
00:24:10
there d yes well because you need you
00:24:16
created, as it were, a new part of the request to
00:24:18
and these must be called differently 4
00:24:27
will now have roughly speaking that the resident
00:24:33
says but don’t let it be work yes
00:24:37
nothing will work like that
00:24:39
write something, let's say
00:24:44
I don’t know the elevator, let’s say joy here and there
00:24:52
write this one here as a request
00:24:54
some
00:24:55
he is because of jones with under requests yes he is
00:25:07
will return the column we you can like but
00:25:09
It’s not important to write here
00:25:10
I don't know these two
00:25:11
it doesn’t matter what it is, yes it will be the main thing is that
00:25:17
look here the trick is that if you
00:25:18
you don't have a sign like ours
00:25:21
groups yes you want there
00:25:26
I don't know how to count here
00:25:28
something like a sum
00:25:29
then you can read this upon request and
00:25:32
for joe thread it here
00:25:34
The main thing for you is that here in energy it’s not
00:25:36
maybe not just the name of the sign, but under
00:25:39
the request is a whole subquery and it contains all of them
00:25:41
the same rules
00:25:42
which are formed for requests there
00:25:45
where is the selector for everything for everything
00:25:48
it’s clear that it’s like a matryoshka doll
00:25:53
yes it can be simple like this
00:25:55
option but they but if someone
00:25:59
tried these requests may take
00:26:01
there are a hundred lines and you should
00:26:07
neat I don't know define understand
00:26:11
what's happened
00:26:15
the meaning is there to look at the meaning of what is here
00:26:19
it says only that you can
00:26:21
replace the name of the sign with the request I understand
00:26:29
so there's some garbage there I can
00:26:30
write very useful for you
00:26:32
look let's do what then for and here so
00:26:36
Let's write for now
00:26:45
I switch in about an hour or so
00:26:49
well, let’s say I don’t know what kind of person I’ll be
00:26:56
count max
00:27:01
mark chrome mark s it’s clear what I need
00:27:10
choose an elastic band elastic band no elastic band here
00:27:22
so so so and how s.m. so here we are
00:27:33
let's say the lion is joy but even without
00:27:38
lion join a I'll take it now I'll write it
00:27:40
here I’ll write something like boom bam bam bam
00:27:43
bam bam ba I’m just writing here
00:27:54
if I write just john what does that mean
00:27:56
right, but try anyway
00:27:59
economics writer
00:28:03
so it won't work all right
00:28:06
let's say it will be like this
00:28:09
can we have a bison and then we arrive
00:28:14
to the next part what select will return to us
00:28:17
max mark is a must really
00:28:19
doblo date some name let's say
00:28:23
her with max mack class battles positive
00:28:30
it can probably be done simply
00:28:31
here then turn it over and so on
00:28:32
as if they understood so much that they understood yes
00:28:36
approximately look we have a sign
00:28:38
ratings and I just choose the maximum
00:28:41
from there not here I just returned one
00:28:47
maximum
00:28:49
it just doesn't matter what number you are
00:28:53
you will just return a number, it doesn’t matter how
00:28:55
what line did you take it will you return it
00:28:57
I just don’t know what the maximum rating is
00:28:59
for some reason an A
00:29:02
let's say hypothetically and to all records
00:29:07
from here you are with a joyner in this case alone
00:29:12
record with these five
00:29:16
max mark well, here I wrote spring
00:29:19
It’s also clear we can give me a wife
00:29:22
they write there
00:29:23
here you can tell the quality here
00:29:25
yes, you can go to the conclusion
00:29:44
there's nothing odd the screws it
00:29:56
nothing until some kind of deception and license plate
00:30:03
just fooled where
00:30:09
mmm so save money well damn it started
00:30:18
so I think I can move this thing
00:30:22
in general, endlessly, okay, the meaning is clear
00:30:29
the main thing is to understand what it will be like
00:30:36
and can be accessed through
00:30:39
or through simply
00:30:44
mmm mmm or look if we have
00:30:52
other tablets have no more columns with
00:30:57
name
00:30:58
m m which is very likely then you can just m
00:31:03
m on that is, you use with this
00:31:06
prefix with this here is a letter only
00:31:10
then when you want to indicate from which
00:31:13
signs you want to take, let's say if you have
00:31:16
groups have a name and students have a name
00:31:18
and when you want there I don’t know to pull out
00:31:22
you will need to specify
00:31:23
With . name or g.na in this case it’s clear
00:31:32
yes of course that's the point, that's why
00:31:35
we them we we gave it a name with a g there and
00:31:39
this one here so that later from them always
00:31:41
from a specific plate it was possible
00:31:43
ask for names, that is, some columns
00:31:46
identified by name, that is, they are all
00:31:48
begin to apply them with new ones
00:31:52
I understand guys yes yes yes here too
00:32:06
Of course it is important how the optimizer works
00:32:09
will he really count alone with this
00:32:12
the maximum that is actually practically
00:32:17
the other must be like this before either he
00:32:21
will start type for each line and
00:32:23
subtract this one for the request and so on
00:32:25
similar things but look at this one
00:32:31
let's complicate the request a little
00:32:33
write here vr is acceptable
00:32:38
groups ID is equal to this to the deputy also m.m.
00:32:46
guru
00:32:47
go boom it's clear what's going on look
00:32:54
what happens these requests immediately
00:32:58
the so-called steel turned into
00:33:01
correlated and the request, that is, here it is
00:33:04
build such a multitude of students with their
00:33:07
groups and now to him for each group
00:33:12
where you will need to go to the ratings table and
00:33:16
find the maximum score for this
00:33:19
groups and and with John with all these lines
00:33:25
I generally understand what I said, I don’t see
00:33:29
it’s just in your eyes that you look wow
00:33:31
here it is here there is always one quickly to
00:33:37
here there will always be one line per
00:33:39
due to the fact that we called max
00:33:46
this can be implemented differently in
00:33:49
principle for each group for each
00:33:53
this is the group he should be
00:33:56
do this upon request and even if
00:33:57
add it to us a little bit and
00:34:00
you will receive a student grade and
00:34:03
maximum in his group
00:34:05
well, that is, not any student’s name and
00:34:06
maximum in his group why is this
00:34:08
we need to, let’s say that’s what we have
00:34:11
we realized the requirement, Igor, let’s not do it yet
00:34:15
I understand what exactly you get
00:34:32
line
00:34:33
let's say a student and he will be in a group
00:34:36
go now you say yes maybe you can
00:34:43
think that so for each line you
00:34:45
ask
00:34:46
that when should you take the ID
00:34:49
from the boom group sign from here and
00:34:53
calculate and find the maximum for it
00:34:55
look at the assessment and put it into practice
00:35:04
for example, if the group sign is small
00:35:07
yes, he will moan and take all the lines
00:35:10
from the group sign will find everything for them
00:35:13
highs about now he will get a sign
00:35:17
group of ideas, at most there will already be
00:35:22
gather with students, that is, he does not
00:35:24
it would be like starting with the students, yes
00:35:26
like starting with a smaller sign
00:35:28
for which we actually have to
00:35:30
calculating this maximum is understandable
00:35:33
guys who didn’t understand my main rule
00:35:42
it's normal that there are no lectures
00:35:44
I understand, yes, that is, this is necessary
00:35:45
I confess I will repeat it to others
00:35:47
speak in words and so on
00:35:52
correlated yes and when he refers to
00:35:58
another sign you're full xs
00:36:01
correlated, you understand that's it
00:36:02
this is this this is this this is what you are
00:36:05
Gillian pointed out and here here here
00:36:07
there is g yes you took it you tell him that you are here
00:36:10
upon request, as if forced to be
00:36:12
related to this yes if so if there
00:36:20
been there for a long time well yes yes if you were there VR
00:36:22
let's say I don't know there go equals 3 then
00:36:28
all this is the same request that can be
00:36:30
perform it once as if yes and nothing
00:36:32
happens because we forced it
00:36:37
it's easy to look at this sign
00:36:41
will be forced
00:36:42
for each of this group calculate
00:36:45
this maximum and connect it to us and
00:36:46
give it to you, look at it like this
00:36:53
since it is called relational thinking then
00:36:55
there, look, how would we add it to
00:36:57
Javit or I don’t know the java script I absorbed
00:36:59
they are there who writes what
00:37:01
basically some kind of scripts we always
00:37:05
opilio drank we appeal with commands to
00:37:08
actually, like, I’ll open the refrigerator
00:37:09
take the milk, I'll open the traffic jam in the alley
00:37:12
We'll close the milk there, put it there
00:37:14
refrigerator close the refrigerator and like this
00:37:15
we write code from the point of view of isku elia
00:37:19
we tell him please give it back to us
00:37:22
Cup of tea
00:37:25
it's practically declarative, that is
00:37:28
It’s as if we’re not quite declarative here
00:37:30
simply because the declaration is too
00:37:32
It’s difficult and sometimes it works, but in fact
00:37:34
you yes you tell him please give it back
00:37:36
this is what I wrote to you here:
00:37:39
he will do it
00:37:40
this is what optimization is all about
00:37:42
what indexes does it have what what how
00:37:45
we'll ask for it because it's the same thing
00:37:47
we can ask in completely different ways
00:37:49
yes, roughly speaking, this one here
00:37:51
this request request we could
00:37:54
put actually in select right in
00:37:56
fields remember I said what’s there in the field
00:37:58
you can write that is under just the same
00:38:01
request from lace and to remove and put
00:38:03
in select
00:38:04
as a result, nothing would change as
00:38:07
would have processed the request unknown you didn't
00:38:10
did you understand, look, we could write here
00:38:14
too much board manipulation needed
00:38:16
I'll have to do it here but
00:38:19
we could write like this: select any i
00:38:23
I'm just not thinking well
00:38:28
It’s not like, well, it’s bad and I use it
00:38:31
this one is on request and then Frol and you
00:38:37
even here all the freaks
00:38:39
nothing would most likely change
00:38:43
that is, we could indicate in the fields under
00:38:45
leave the request as I indicated from rome
00:38:48
our field would be the same now
00:38:50
correlated with the request
00:38:52
it's just another not a few friend
00:38:55
slightly different record of the same request
00:38:57
in fact they would bring at least one
00:38:59
and with the same data, at least something is clear
00:39:06
we will practice but this is necessary
00:39:12
of course it takes some getting used to
00:39:19
so let's move on because
00:39:22
we are all moving towards you know what is right
00:39:26
kingu t t t t t t t t t t t t t t t t t
00:39:33
were probably not very cool anyway
00:39:35
boom so now so so so
00:39:43
Now I’ll erase it, by the way it’s not multi-touch
00:39:47
or multitouch no or multitouch somehow
00:39:50
somehow not too close well
00:39:53
ok so everything next is in our
00:40:04
the simplest thing I think is simple
00:40:06
filter yes how we want to make a filter
00:40:10
it is clear that in r everything can be the same
00:40:16
the most practical thing is that the selector under
00:40:19
the simplest ones can have requests
00:40:22
let's say name I've already done it a thousand times
00:40:25
but it’s clear Sergey himself is a simple filter
00:40:30
date is acceptable or 1 is equal to 1 of it can be like this
00:40:43
write to you here will be true of course
00:40:44
will always return all rows but
00:40:45
potentially it's possible so it's not
00:40:47
we'll do it, we'll erase it, it might be under
00:40:54
requests
00:40:55
let's say some, let's say the most
00:40:58
the most famous frequent case
00:41:02
you are intrinsic poke poke poke we will erase or
00:41:06
let's say
00:41:08
so now boom boom or
00:41:12
well we choose let's say chrome students
00:41:16
our students with s and write where
00:41:25
This is how I write VAT.
00:41:30
group of ideas then I write this and boom
00:41:35
boom and I write select
00:41:41
group go
00:41:43
or not even a group, I’ll erase the offense now
00:41:48
that's all yes I'm for and die from the guru's
00:42:01
let's say it will be called by the way
00:42:04
you can often skip it, but it’s better this way
00:42:05
it's better not to write from but you can
00:42:07
just write groups
00:42:08
and type this and issue it as an alias where
00:42:11
let's say
00:42:14
could get is equal to I don’t know what we have
00:42:19
faculty on cool TNT, well, it doesn’t matter 2
00:42:29
look it's clear what's going on
00:42:36
great who said not very handsome
00:42:39
something is the name, look, Arsenyev is there
00:42:42
short
00:42:43
7 here's seven look in short we're returning
00:42:46
all students
00:42:47
where the name is ravens and the name is equal to Sergei and
00:42:52
groups fields group go
00:42:54
from the sign student student enters
00:42:58
list
00:42:59
boom and this list returns us under
00:43:03
a request that tells us return everything
00:43:06
disks from the group table for faculty 2
00:43:12
you will return here only a group of this
00:43:15
faculty
00:43:16
and then you will return only people with
00:43:18
named 2 yes yes yes look in the standard
00:43:35
I'm sorry, as far as I know there's only one here
00:43:38
column maybe but yes but
00:43:43
If I'm not mistaken, is it possible?
00:43:46
return two columns well in short
00:43:49
some implementations can have several
00:43:51
columns to return and there, as it were, already with
00:43:53
work with them but look at standard 1
00:43:55
what trick can you do inner join yes
00:44:00
yes exactly
00:44:02
absolutely true that is, yes and it will be
00:44:06
the project is the same actually
00:44:08
almost the same thing, that is, we can
00:44:09
take this request put it in frome
00:44:12
here let's just say everything is the same
00:44:15
do as as upon request leave it
00:44:18
and it will be almost the same as us
00:44:22
we can even just for Johnny Tsana group then
00:44:24
there is write from you dance
00:44:26
here I will write like this inner join
00:44:30
groups then write it in groups go
00:44:36
and then write md groups faculty
00:44:42
equal to two, I understand, but it’s not clear, yes
00:44:49
yes, that is, it’s not easy, but it’s like that
00:44:54
you don't necessarily have to link to
00:44:55
previous sign with maybe a piece
00:44:56
filter yes, that is, here it is here
00:44:59
posted here here it was possible
00:45:01
just write in three lines just for
00:45:04
johnny prices for groups by group well by
00:45:09
students in a group but leave here
00:45:12
there is only a group of 2 faculty here
00:45:16
Is it clear or should I be stressed and
00:45:19
write it more clearly but not here
00:45:25
it is written that we are returning here we are
00:45:27
we just work with a set of strings they give us
00:45:30
the set of lines will be the same until
00:45:38
right, if we don’t choose them then
00:45:43
most likely will not appear no will not affect
00:45:46
look rude if we write here
00:45:48
select to select with . asterisk off
00:45:54
so it’s also possible that this means all fields
00:45:59
from the students' sign yes yes why can we
00:46:04
use abbreviation because
00:46:05
select works after from a yes that is
00:46:09
the first one will work frome he is already in this
00:46:11
moment we find out how we tell them about Olya strength then
00:46:14
there are some we came up with for them and then
00:46:17
we will return them to this time accordingly
00:46:19
moment we just asked for all the fields
00:46:21
the only difference is the only one
00:46:24
difference in and and inner join a and here you need
00:46:30
now straight away strain that inner
00:46:33
join can increase the number of students
00:46:38
there is no need why why is it correct the other way around yes
00:46:44
firstly, if there are students who
00:46:47
no group
00:46:48
then we will lose them, but most likely we would
00:46:50
and so they lost because the warrior was but
00:46:52
if there is if let's say there are groups with
00:46:59
the same IT guy on this plate
00:47:02
groups it so happens that there are 26 groups
00:47:05
you sit down with nickname 2 and group 27 you sit down with nickname
00:47:08
2 there and for all students with this
00:47:11
The IT guy is bifurcated, understandably because
00:47:16
that's how it works
00:47:17
inner join yes we are for each
00:47:20
records looking for matches but if you dig
00:47:23
if one tablet contained one line in
00:47:25
the other two lines we will get two lines
00:47:27
so if like VR and never like that
00:47:31
will do it just filters it doesn't do anything
00:47:33
propagated, that is, it will simply filter out
00:47:35
to us, yes, all this is the transparent logic of the son in
00:47:39
john if you are johnny looking for keys
00:47:42
I bet the key will be ok variant entry
00:47:45
and the optimizer will understand, but if you
00:47:48
get married, don’t connect me using unique
00:47:50
key and about something else
00:47:52
then theoretically you can increase
00:47:54
number of entries in well students
00:47:57
return there I don’t know there was one Sergei you
00:48:00
return just doubles boom-boom-boom-boom
00:48:03
Well, it’s hard to say something literate
00:48:14
John in short he is transparent revered
00:48:16
a person, most likely yes, but this one is just
00:48:19
it’s clear what you want to do and what you want
00:48:20
it's also ok to filter
00:48:22
it just reads a little bit more
00:48:25
bulkier than this one
00:48:26
and if we let you, look at the trick
00:48:29
without yes as you asked here in the past
00:48:31
about several fields like yes yes then
00:48:37
there are faiths here we always filter
00:48:39
let's say in a group and always one at a time
00:48:41
field then you world join and we can write
00:48:43
one field at a time and then write and
00:48:47
something on the second field too, yes then
00:48:50
there is an inner join here, just more
00:48:55
a universal way to do this if
00:48:57
Let's say you need not only in a group
00:48:59
dead filter and return from everyone there and
00:49:02
from the faculty and there some other one
00:49:05
take groups and then, well, in short, two at a time
00:49:07
fields you can do it here
00:49:13
I'll have to write another one then
00:49:15
request that is, write if vr and
00:49:17
will leave u let's say write n.s.
00:49:20
name in duplicate this request
00:49:23
get the same field and it will definitely be there
00:49:25
done twice, most likely this
00:49:27
piece this piece this has a chance
00:49:29
will be executed once transparency this but
00:49:35
this is exactly what I need to say here
00:49:39
feel it and it’s not a fact that it is
00:49:43
everything will fall very easily at once, it’s like
00:49:48
it would be ok to actually eat
00:49:52
there is a certain art to writing select but
00:49:55
when you write there are already dozens of them
00:49:57
then something will come to you and I don’t know
00:50:05
which lens is object oriented
00:50:07
programming yes, that is, there is such a thing
00:50:09
Taman shift which you overcome and
00:50:10
then it becomes natural for
00:50:12
these little classics are all sorts of things for you
00:50:15
patterns and so on, see rough
00:50:18
roughly I write simple USA in the simplest
00:50:20
the query we wrote select max
00:50:28
Mark
00:50:32
from mark
00:50:37
there is such a thing as
00:50:39
I am using the aggregation function here
00:50:43
max yes they are max help me
00:50:47
close what other count and in g and food on
00:50:57
they forgot one of the most important things, cult okay
00:51:00
I'll help you with the amount, it's like basic
00:51:05
accordingly, these are always some kind of grig
00:51:09
tion functions are applied to the group
00:51:11
when the group is not specified it is considered that
00:51:14
all
00:51:15
the entire set of rows is group 1
00:51:19
accordingly this request means I
00:51:22
I want to return the maximum rating out of all
00:51:24
rating table
00:51:26
yes, if I write it like this
00:51:30
groups bike let's say group go and here
00:51:41
here I’ll say I’ll write it like this
00:51:45
group go what will it mean to
00:51:52
that means yes, that is, we will take everything
00:51:58
We’ll break a lot of estimates, open the window and
00:52:00
at some point it becomes stuffy mega
00:52:02
rs load falls asleep and we are still heavy
00:52:07
nbu didn't get there
00:52:10
so you will tell me if I will close it for him
00:52:14
we'll take a break so watch this
00:52:18
means that we will break this multitude
00:52:20
go to groups according to the field and in each
00:52:24
from these groups we will take the maximum
00:52:28
we realized, yes, and accordingly we can
00:52:30
also take the sum of these estimates into the average
00:52:33
from these estimates and so on he will return to us
00:52:38
as many lines as the group de
00:52:40
was well, in general, if it’s not allowed there
00:52:43
there was no recording he will return us nothing everything
00:52:54
but he will just return 0 yes yes yes but
00:53:07
these are the columns, look at this
00:53:12
right now I want to slow down until the column influences
00:53:24
only on the order of columns in the village gti then
00:53:28
yes you will change them accordingly
00:53:29
you will receive a sign that first
00:53:31
there will be an ideapad group and a maximum one
00:53:32
grade
00:53:38
rough
00:53:39
across the field in a group so look great
00:53:43
what's the name of the novel look here let's say
00:53:46
there is a scoreboard for you, look in the sky
00:53:48
the letter is written by a student, poor, etc.
00:53:51
group go assessment student group asia
00:53:55
there are a lot of assessments there
00:53:58
let's just write it like this, look at it
00:54:00
we have let's say it doesn't matter group go
00:54:04
Mark, well, it doesn’t matter, we don’t have it yet
00:54:09
fundamentally here too
00:54:13
1223
00:54:15
here 4352
00:54:21
accordingly, we will return how much
00:54:30
lines first we will return let's start with
00:54:32
This and three lines is correct Arman come on
00:54:36
next what lines will this be a group
00:54:40
let's just have these lines, how's that?
00:54:46
since we don’t talk and there’s no order
00:54:48
ours were determined in any order in any
00:54:50
ok Victor look we won't refund
00:54:57
which of these lines
00:54:58
Yes, we will return as if the new lines are not
00:55:02
according to plan. no matter how we do it it won't be
00:55:04
none of these lines of code we will return 14
00:55:09
25 and 32 3 new lines
00:55:15
if there was any amount there, we would return it
00:55:19
1428 32 no, he would return one to us
00:55:35
us
00:55:42
what he won't understand perfectly why you don't
00:55:47
I said before, that is, before that pocket
00:55:50
asked did you understand
00:55:51
and now no, let's have four lines
00:55:57
we are a group, look what grouping means
00:55:59
yes then we group it means that
00:56:03
we break them into parts with the same
00:56:07
the value of this field is that we have
00:56:10
it turns out 1 group 2 group
00:56:13
and then the three group realized what your name is
00:56:18
I understand the tapes, yes we are grouping, we hit it
00:56:24
group go all groups are lines y
00:56:29
of which this field is the same
00:56:32
file fire handsome Lena everything and then to
00:56:38
this group, that is, to the lines from this
00:56:40
groups, apply the function accordingly
00:56:44
which we took and take max from here
00:56:46
max due to these values ​​max due to these
00:56:48
values
00:56:49
either the amount or and HIV or the minimum and then
00:57:05
there we will do it here we write here
00:57:13
like a comma and write here, let's say
00:57:17
minimum from mac
00:57:21
you're just so smart bottom how simple
00:57:36
musical effects everything is booming
00:57:40
So
00:57:45
come on, of course, always any
00:57:52
aggregate functions apply to this
00:57:54
game peak lines from this group and you
00:57:56
you will return the maximum for some reason later the group
00:58:00
go then at least if not in rude
00:58:10
there can be any number of columns
00:58:12
see here it may be acceptable if
00:58:14
I'll write a recording group let's go
00:58:18
look, we have a sign here
00:58:20
we now look we have
00:58:24
score board give a good question
00:58:27
well done we have a mark sign in it
00:58:31
we have an ID column let's say groups
00:58:37
city ​​and mark boom-boom-boom like that
00:58:42
like this and now I'm taking this look
00:58:46
tricky now about what else will I get, and
00:58:57
what will it be let us assume that it is
00:59:04
yes, this will really be the whole sign and
00:59:08
the maximum and minimum will coincide with
00:59:09
Mark himself can write this
00:59:15
you can write transparently until it turned out
00:59:17
something like this will be a lot of groups
00:59:24
in fact because you have these unique ones
00:59:26
All
00:59:27
yes and it turns out well how well yes it be
00:59:29
a lot of entries
00:59:30
you will return a lot of records because there are a lot
00:59:32
groups you have like groups one group
00:59:34
will be equal to one line
00:59:35
let's say you can write
00:59:38
rude mark, well, I don’t know, it’s just
00:59:42
have to
00:59:43
[music]
00:59:45
throw something else here and there
00:59:48
you just have to change something like this
00:59:50
it won’t work out in short okay we have all three
00:59:54
columns, as it were, but the point is
00:59:56
as for
01:00:02
let's add fk id then you can yes
01:00:08
write efco here
01:00:10
go, bruce in theory but here the trick is on
01:00:15
in fact, look at the castle like that
01:00:17
worth it is important you can choose in the village
01:00:21
gti
01:00:22
which columns is a problem for an A?
01:00:28
what columns can you write in the village
01:00:32
gti
01:00:33
on the contrary who is a rude fellow
01:00:37
Egor is great, that's right because you are
01:00:39
you can write only those columns according to
01:00:41
which formed the group
01:00:43
others you seem to be sorry and neglected yes
01:00:47
that is, how would you imagine that you
01:00:49
like how like this is like the simplest
01:00:51
way to write rude here you have it
01:00:53
list of objects you take to the USA
01:00:56
enter the keys from two fields, not in the hash
01:01:00
this yes there with these yes let it not matter in
01:01:03
hash table means yes and you run
01:01:05
through all of them and when you find a new one
01:01:08
you insert the key there and yes and let's say
01:01:10
depending on aggregate functions or
01:01:12
there at most you read either the amount or
01:01:14
average on like this but with average there
01:01:18
it won’t work out like that, no matter how
01:01:21
you would accumulate it like this and
01:01:24
work accordingly then when you
01:01:26
they ask you to show everyone else
01:01:29
columns except those for which yeah
01:01:30
the banks were in the lead, respectively
01:01:32
tion functions were lost accordingly
01:01:34
everything is easier with rough can participate
01:01:36
only those columns on which I was
01:01:39
rudely
01:01:40
it is important
01:01:44
optional, you don't have to add them
01:01:46
roughly speaking, as in this case, look
01:01:49
if the group belongs to the faculty well
01:01:54
like in a normal university you are a group
01:01:56
studies in the same department and in the same department
01:01:59
it is obvious that grouping by
01:02:04
fk adi she is redundant because more
01:02:08
rigid grouping by group ideas
01:02:11
understood
01:02:13
Wait, did you realize that you were watching?
01:02:17
we will have such a topic that these are all in
01:02:20
first faculty but group 3 in
01:02:22
second faculty but the groups will be all
01:02:24
like this one like this maybe up to
01:02:31
maybe of course maybe of course maybe
01:02:33
maybe I'm just talking about our specific case
01:02:34
I say when this is the faculty of course they can
01:02:37
there may be differences, yes, well, if it is
01:02:39
faculty and this meaning is simple
01:02:41
you have a wider group anyway
01:02:43
it will be, as it were, in connection, well, that is, you
01:02:45
the two fields will have to match because
01:02:47
it's always kind of the same, that is
01:02:49
you will still be in the same groups and
01:02:51
you will get the same value but so that
01:02:53
take him out
01:02:54
faculty go you'll have to add it
01:02:56
here so you can write here
01:03:00
faculty or
01:03:02
yes yes no you view correctly like this
01:03:20
The trick is that in the aggregation functions
01:03:23
you can use all the others
01:03:25
fields inside aviation functions in max
01:03:29
in total, that is, that's the point you should
01:03:31
collect groups but with these values
01:03:33
with the rest, use some kind of them
01:03:35
gravitational function sum average there
01:03:37
it doesn’t matter what it is
01:03:39
inside inside max you can
01:03:42
use only you run shorter
01:03:44
you run to your sheet, you run, you run, you run
01:03:45
so yeah it's a new key what's the matter now
01:03:49
with these values ​​yeah I add to the sum
01:03:52
previous key riot folded ran
01:03:54
further but as soon as
01:03:56
ran on, you seemed to have already lost everything
01:04:00
worth no order may not be maintained
01:04:06
imagine what you wrote
01:04:08
algorithm through there through a hash table yes
01:04:12
and in the end you collected everything like this
01:04:14
we've gone through the entire list now you need
01:04:16
run through the hash table and there it is
01:04:17
may be there already in any order then
01:04:20
there are times we ran and you gave because
01:04:22
in fact, we don’t give him any order
01:04:24
indicated here if we wrote here
01:04:26
here's what we'll talk about next warrant
01:04:29
buy let's say by faculties he would be like this
01:04:32
tensed up were still on you and
01:04:34
you need to sort by faculties okay
01:04:36
asked me to do this in the table
01:04:42
no unless you ask for it through a warrant
01:04:46
buy the you can get it or maybe
01:04:48
you won't get any
01:04:50
no guarantees look yes he can avoid
01:05:02
sometimes sorting if he already understands
01:05:04
that they will turn out in this form, that is
01:05:07
the sorting operation itself at this moment
01:05:08
won't that is if if they then don't
01:05:10
I know on the disk they are stored in groups
01:05:15
he knows this before he controls and he seems to
01:05:17
there is no skip sorting operation itself because
01:05:19
that it automatically has groups like this
01:05:20
it turns out they understood that he was gone again
01:05:30
as if but it seems to be out of order
01:05:34
they, well, look at this to the question about the index
01:05:47
let's leave it for later but
01:05:51
in fact I just wrote them down like that
01:05:53
they could be stored there fasting to me like this
01:05:56
absolutely that is, if you the main thing is that
01:06:01
you need to know if you want what order
01:06:02
then you need to ask him to sort it out
01:06:08
if we have two and two
01:06:13
if allowed by group 922
01:06:18
that's a great question
01:06:22
orlam Arman, well, it’s okay, I could be wrong, I
01:06:27
I'll remember you Arman what we'll have
01:06:29
results with function let's say max as
01:06:35
do you think how many groups there will be here?
01:06:39
in short here you kind of know
01:06:41
everything is written hard, look at forty
01:06:43
four lines here four lines 11
01:06:46
12 22 23
01:06:50
how many groups will we group by
01:06:54
two fields on these, this is what I called it
01:06:56
Let's call faculties 1 and here the group is not
01:07:05
field and how many groups will be incorrect
01:07:11
us last time when we grouped
01:07:12
there were three groups in one field, now we
01:07:15
In short, we group the fields into two, we already have
01:07:18
it can't be less than 3
01:07:21
these groups and which used to be 111111
01:07:29
group 1 2 next group 22 and 23 to
01:07:33
because not everyone of course is a group
01:07:37
which has the same value if
01:07:40
this is one column means one column at a time
01:07:42
if two columns two columns neva you
01:07:47
four groups up to 4 groups the same
01:07:51
how many lines does this example give us?
01:07:53
we have one more line which is there
01:07:55
if there are 12 then there will also be four groups
01:08:00
that is, unique couples are really here
01:08:03
in fact, that is, the group will be created for
01:08:06
each has a non-unique pair of columns
01:08:15
it's not crossing it's nothing it's just
01:08:18
you sort of group them by unique
01:08:23
with this unique coincidence of columns
01:08:25
and for all of them you count something
01:08:28
I say that’s what you do the key in
01:08:31
your hash table, now you have made the keys
01:08:34
1112 and 223 and apply to each of
01:08:37
keys first let's say we made a key
01:08:40
saved all the values, turning them off later
01:08:42
all this sheet that was saved
01:08:43
use some function and return
01:08:47
it doesn't matter if you question me
01:09:00
interested in the third row guys in nothing
01:09:02
ask and I'm worried ask me
01:09:05
anything let's say my favorite light
01:09:10
bonfire weather will be in some places generally
01:09:14
ok okay and we're straight ahead
01:09:20
we are moving in steps in the right direction and towards
01:09:24
take a break, watch about the Winx fairies, Lyokha no
01:09:33
wait I'm not the leader
01:09:34
you go there and then you'll be everyone
01:09:38
we'll tell you even hank didn't tell
01:09:40
so passed look healing like me
01:09:48
already said
01:09:50
healing people write in the career a couple of times I
01:09:54
as if I’m telling you that’s why I often and
01:09:56
I'll write out 3
01:10:05
that's what having is, do you understand?
01:10:11
that's it, look having this is a filter
01:10:17
which can be imposed on
01:10:19
some kind of aggregation function and
01:10:23
filter the groups we have
01:10:25
turned out after a rough one, that is
01:10:29
look at us there, let's do it one more time
01:10:31
our sign one is acceptable is acceptable
01:10:35
even we have one field group go and
01:10:37
Now I’ll fix it all so that we don’t
01:10:39
suffer too much 3 come on I want you
01:10:43
I'm tense now it's important I'll ask you
01:10:45
then you yourself know in the exam those
01:10:49
and wink
01:10:50
Of course, a thousand guys will have me even
01:10:57
didn't ask for anything wait I haven't yet
01:11:00
I managed to ask nothing even to look
01:11:02
game go we have one here let's say 3
01:11:05
here October 2 here 4 here 2 here 5
01:11:11
here there are three here let's say 4 yes this is
01:11:19
ratings this is a group go
01:11:25
how many groups do we have 3
01:11:29
initially further we received for them
01:11:31
lines let's say we think well let's say
01:11:33
how would we rush to having - we will rush
01:11:35
we calculate the average we calculated 3413 and that
01:11:46
24 and a half before he realizes that you
01:11:52
somewhere there except so that it doesn’t matter and
01:11:54
now we do having heaven says
01:11:58
please give me back only those groups
01:12:01
whose average score is more than three is
01:12:04
that means we will return groups34 24 and a half
01:12:13
more than three.
01:12:15
that is, we will return 13 and after that, actually
01:12:18
in fact, we want to count the maximum of these
01:12:21
groups and in fact we will return well
01:12:24
almost the same thing you use 3425
01:12:33
such having now why no one
01:12:37
writes having no come on Igor man
01:12:40
I thought because you choose the maximum
01:12:47
and you filter by a in d you see having a
01:12:51
v.g. and you choose a topic like this at most
01:12:53
the cunning one easily came up with it but so
01:12:56
seems to be decreasing now why isn't anyone
01:12:59
writes having clear it was drawn
01:13:03
yes because any request is healed
01:13:06
can be rewritten via v.r. that is
01:13:09
I accept this request
01:13:11
I’m writing like this, here you are opening the boom
01:13:14
lines start close called adele
01:13:16
I’m writing in and in the game, also here of course
01:13:22
I think a in g mark is called a let's say m
01:13:27
and I'm mad V.A.
01:13:30
yes more than three and in the village I return the GTI
01:13:36
only this is the maximum up to
01:13:40
it is clear that this is not so compact
01:13:44
yes we had to this one here this one here under
01:13:46
wrap the request here and replace having
01:13:50
no where yes it’s clear what happened
01:13:57
here are the members of the dog
01:14:00
yes, here it is, as if I wanted to, as if I was
01:14:02
still passed something to count
01:14:04
I asked him to count 3
01:14:06
aggregation functions one at a time
01:14:08
filtered through 2 and returned 2
01:14:13
yes they all are better for me just having is possible
01:14:15
not only you and everyone don’t know that’s all but
01:14:20
so well yeah he's just like you have
01:14:23
the opportunity to write a request is simply here
01:14:26
like this, not nested with one level
01:14:29
nesting yes, here’s how to write it
01:14:32
yes, this is where you get it
01:14:35
the request is somehow nested but
01:14:36
there is potentially nothing to do there
01:14:42
considered bad, but people just don't
01:14:46
no tradition you write prostate
01:14:49
nickname you've been writing this for 1 year because
01:14:51
you always think within the filters yes
01:14:54
so I need to calculate then I need to
01:14:56
isolate what can be filtered out
01:14:57
for aggregation functions only
01:14:59
gaming as it were, oh my God, how could it be
01:15:03
it’s as if he actually remembers everything but
01:15:04
almost no one ever writes write
01:15:06
there was a request for this and away we go
01:15:13
look at him in short, here I called
01:15:15
So then I named these speakers somehow
01:15:17
here I selected them and here I understand to return them
01:15:24
yes this is it from select asterisk this
01:15:27
from everything correctly noted this one is good
01:15:31
under select then vr then from here
01:15:34
columns were filtered one by one
01:15:36
the rest were returned here
01:15:41
I don't know if anyone will find the request
01:15:46
which cannot be rewritten
01:15:49
without Haring, well, I don’t know, from me automatically
01:15:56
come on, if you want a machine gun, come here, yes
01:16:23
you speed up, it probably depends
01:16:25
temple imitation but don't wait at all
01:16:35
why did you endure like the first one just synths
01:16:38
tolerated yes yes well at the level so here
01:17:03
it is important from this whole logic that it is not equal
01:17:06
nalu
01:17:09
yes that is, what I didn’t tell you yes that
01:17:13
eat as if you want
01:17:15
filter and return only to us boom
01:17:20
boom boom boom boom boom boom boom 5 to then
01:17:30
there is another one if you need to leave
01:17:31
only mean
01:17:40
it's all in one column of all kinds of [ __ ]
01:17:42
it is written that you will go there somewhere too
01:17:44
you will read Marx line by line
01:17:46
I'll tell you dude I can't count it there
01:17:49
come on, let's fall for you as if for everything
01:17:54
the rest depends on the editors who
01:17:56
you will write it if you go there
01:17:58
let's say something on the table
01:17:59
I don’t know the maximum that you can do
01:18:01
substitute it can be said more often
01:18:02
today look what's important and what I don't
01:18:05
told me that if you want
01:18:07
filter let's leave in
01:18:09
on the plate we only allow the values
01:18:12
you can write permissibly go and from to
01:18:18
either from
01:18:20
but that is, we have to check
01:18:27
special operators because if
01:18:29
two columns equal to us this will return
01:18:34
permissible lion
01:18:38
that is, nalu is not equal to us
01:18:42
that's so clear it's boom boom boom boom
01:18:50
boom boom boom and we only have a warrant left
01:18:54
buy then take a break
01:19:02
Then
01:19:03
I’ll tell you again through I ask you sakan apa
01:19:07
time later this sedge early 6 30
01:19:12
pieces we still have time left class
01:19:16
I'll ask you a lot more, so look
01:19:21
the buy order is the latest to work
01:19:26
it’s clear what he’s doing, write a buy order
01:19:32
you get all the lines sorted
01:19:36
by name
01:19:38
write them correctly in ascending order
01:19:43
initially ask for default yes no
01:19:48
nothing just exists, as it were
01:19:53
increasing
01:19:54
ask ask standing and descending will give
01:19:59
standing compare or comparator type
01:20:08
right up to here everything works from this
01:20:13
everything is too deep there actually
01:20:15
actually goes into some lines
01:20:19
invar char did not tear the char how are they stored
01:20:22
let's say it can compare registers
01:20:25
dependent may case independent so
01:20:28
gives you something similar, that is, it’s all on
01:20:30
in fact, then it goes deep into
01:20:32
implementation and let's say I don't know if you have
01:20:35
one has a name and the other has a name and then they are there
01:20:39
can
01:20:40
in one case be generally equal and if
01:20:44
I don’t know where you are talking
01:20:46
something else big and small letters
01:20:48
considered the same, that is, case
01:20:50
the intention of those that is insensitive
01:20:52
The register can sometimes be uneven
01:20:54
if you are sensitive and rivers of registers
01:20:57
there are also all sorts of accents c above letters
01:21:00
yes there are some letters like this
01:21:04
then, well, in short, this is all bullying
01:21:06
Russian people accounts
01:21:10
Yes, accordingly, you can use a buy order
01:21:13
write to mts write down, let's say her
01:21:18
name
01:21:21
ask yes yes yes yes look what is important you
01:21:38
you can even write a case study yes
01:21:42
that is, you can write everything there
01:21:44
this is completely case expression and
01:21:46
it would be good to sort them by this
01:21:58
tu tu tu so wait so look
01:22:10
example on
01:22:14
case you
01:22:20
equals
01:22:21
to cut smoke 11 1 of 2
01:22:32
Well, I sort everything first by name
01:22:35
then by last name and then by 12 and one
01:22:41
only for names that are equal to that
01:22:47
more like these nestings
01:22:49
sort groups
01:22:58
one more than two really caught you
01:23:05
just before
01:23:08
we sort simply therefore it means that
01:23:11
we sort by these columns, that is, well
01:23:13
let me even delete this one just so that
01:23:15
didn't bother me
01:23:19
I’ll delete this now, it will be simple
01:23:21
see the thought means first
01:23:25
no earrings
01:23:30
so look here we sort by ask
01:23:34
yes it's like ascending that's all
01:23:37
time is hard first for the little ones
01:23:38
they will all get there first, Seryoge, well then
01:23:42
there is everything with and then everyone else yes you
01:23:47
that's right, there's not much to do right now, nothing about anything
01:23:48
I just think slower than you all this
01:23:52
it's okay if I write here
01:23:54
disk before then in short everything will be the other way around
01:23:59
and accordingly the complexity of the expression here
01:24:02
maybe, well, in general, who do you like?
01:24:05
anyone for requests in a buy order
01:24:10
you can’t write, but you also know in short with
01:24:13
the coolest feature in the selector come on
01:24:19
quiet little guy married to live like everyone else
01:24:24
name is glory class just for you just
01:24:33
will be after with yes yes well look if
01:24:39
I’ll write it like this for the type but if so
01:24:46
so I’ll write thank you, that is, if that’s it
01:24:50
so I’ll write on and
01:24:51
then all the deuces will be named
01:24:53
sorted and if I don’t write anything
01:24:56
it means that the order after is not important to me
01:24:59
of all scales of course they will first
01:25:08
all those with and then by name of course
01:25:16
well, in the forehead yes yes but only that
01:25:23
will remain but wait a minute look here
01:25:30
us quietly sub-point let's go straight
01:25:32
this turned out to be such a difficult question
01:25:35
give we have a name in it there is and there is
01:25:41
words there are with there are Alex
01:25:49
why are words and alex not even here?
01:26:02
I understand the question, wait, look, let's
01:26:03
how will this be sorted
01:26:05
how will he no we would say no
01:26:07
just 1 Caucasian that when the name is equal to
01:26:10
yes of course we didn’t write here there
01:26:13
I know like cinque what a promotion is
01:26:15
titrate the number highin tochnyak yes now
01:26:22
well done prophet remembered reminded me
01:26:24
Now I’ll tell you a little about her too
01:26:25
it means the beginning comes with bu da disk or disk
01:26:30
no disk disk ours with at the end you know God
01:26:35
my we all have a drink now I'll fix everything
01:26:43
well, with and then by name then it means
01:26:48
it started difficult, who first and
01:26:51
or alex but I think and then alex glory
01:26:57
forgive me please
01:26:58
or you can't say that he says
01:27:00
words forgive me please words forgive me
01:27:07
please then you I didn't do it on purpose.
01:27:16
now in short we will write a disk here yes
01:27:18
wait disk you know by date in short everything
01:27:23
it's all clear and gone in short
01:27:26
till the very first let everything be
01:27:36
on the contrary then the question is if here
01:27:39
write three I am here write two in
01:27:41
in general it is clear that nothing is good
01:27:43
such a request will not work, well, I mean
01:27:46
turns over means well of course you can
01:27:49
write a house here, I don’t know, yes you can
01:27:53
count -1 can write words here
01:27:55
or there Alex anything I just
01:27:57
example written about the league is bright now
01:28:05
let's talk and ask us 3 rows
01:28:27
well, when order is important to you then you
01:28:30
order is important until roughly speaking
01:28:32
there are goods in the store
01:28:34
click I want to watch the biggest
01:28:37
prices and then the first 10 screens just
01:28:40
scrolling through how we would look at them
01:28:43
how does her cool track start?
01:28:45
the most expensive no let's go to the second sheet no let's 3
01:28:49
maybe here I can afford it
01:28:51
but there on the last sheet you buy like
01:28:54
would be second from bottom
01:28:59
yes of course of course of course it's a ride
01:29:01
of course not, at best he is his
01:29:12
will let him through, that is, if he has data
01:29:15
will be sorted in that order in
01:29:16
ok he'll just skip the surgery
01:29:20
and will understand that she returns so much in this
01:29:21
ok
01:29:22
otherwise you'll put some strain on him
01:29:24
sorting always therefore if you
01:29:26
no need to sort, no need to write it
01:29:29
if you're there I don't know if you get this data
01:29:32
then you load it, I don’t know, just hash tables
01:29:37
I don’t know why it’s there or you just don’t like it
01:29:40
it is important not to process them in what order
01:29:42
you have to force him to sort it for you but
01:29:44
if you let your algorithm be there too
01:29:47
depends on the order I don't know you're running there
01:29:50
to all the similar groups there
01:29:52
do you fold something else then strain it
01:29:54
order for networks how the class will be convened
01:30:05
yes yes of course of course yes see question
01:30:15
he was so beautiful I read with some
01:30:17
other issues
01:30:19
how to write what I need not just
01:30:26
cool now look how to return it here
01:30:42
this is how you can write
01:30:44
[music]
01:30:49
like keyword boom boom boom
01:30:54
percentage with percentage yes we will return everything
01:31:07
lines that have c in our case
01:31:10
these are words and c we can write like this
01:31:17
yes yes you can start anywhere
01:31:20
write it like this, it will mean everything
01:31:23
what starts with s we can write here
01:31:27
so it will actually be in fact
01:31:34
equivalently equals
01:31:36
in general it depends on the optimizer as
01:31:38
he can do it and we can write
01:31:41
of course we can write like this
01:31:43
there is generally a percentage of sbc and a percentage of
01:31:50
in fact, percentages of what is practically
01:31:52
in all databases there is in the standard there is also
01:31:55
I think underscore is one of any
01:31:59
symbol
01:32:00
are there some other type of brackets there?
01:32:05
like the fighters are any for bc
01:32:09
parentheses with negation
01:32:11
we are like any unusual something like that but
01:32:14
this is not regex
01:32:15
yes it’s not, well, I mean, look at it
01:32:20
simplest hex and
01:32:23
in fact riddex also exists but
01:32:26
It's different on different Saturdays
01:32:28
it is used, it is not standards but in principle
01:32:31
there are options and even use it, but you
01:32:35
must understand that look what's here
01:32:38
important to understand
01:32:39
well it’s too early to say but look
01:32:43
so that such a filter
01:32:48
you probably need to do it
01:32:52
view the entire sign as if we didn't
01:32:55
tried to give and especially if like this
01:32:57
yes, this is the filter we are talking about
01:33:03
Nikolay said basically an optimizer
01:33:06
must understand that if he has
01:33:08
Yandex ps assorted, that is, he has
01:33:11
the value of the name it stores is sorted in
01:33:14
ok initially date he can immediately
01:33:18
we can find the letter later, they are here
01:33:23
no she lived
01:33:25
find him running while he's there
01:33:28
until he reaches the date there and then
01:33:32
get out because it’s like it’s further
01:33:34
there's definitely nothing to start with
01:33:40
special operator like these are the simplest
01:33:46
or xp that's the last thing left come on
01:33:55
sort the case later if we are looking for more
01:34:07
imagine imagine as if
01:34:10
you would write a comparator you have two
01:34:13
object when there you compare them
01:34:15
and just this all the objects are obtained
01:34:19
less than others, well, yes, look how
01:34:38
sorting works, we have a lot of different ones there
01:34:42
algorithms
01:34:43
but in any of them there is an operation
01:34:45
comparing one element to another
01:34:48
elements correctly and how and when
01:34:51
it will call the sort operation
01:34:53
for your multitude which he will receive
01:34:55
he will take your buy order after the fact and
01:34:58
your executive will begin to compare
01:35:01
all this for everyone roughly speaking there but for
01:35:04
each element that it will be
01:35:06
throw or something is wrong with them
01:35:08
do it will call this case
01:35:10
play off to get which one is bigger
01:35:11
and sort them either left or right
01:35:14
it was clearly explained, that is, everything
01:35:17
rests on the sorting operation, that is
01:35:20
there's no science here to know
01:35:24
database you need to know
01:35:28
What is the complexity of searching hashes, hash tables?
01:35:32
difficulty search ok
01:35:37
the sorting complexity is just logarithm n
01:35:43
everything is almost everything yes it is still there
01:35:50
just the complexity of line wire
01:35:52
I pass the additional usual well, in general, everything is there
01:35:55
there is bar 2 base operation put in hash
01:35:57
or sort and there you are
01:35:59
somehow everything lives between them most often
01:36:01
accordingly you need complexity
01:36:04
get the complexity out of the mess to build a hash
01:36:06
it's hard to quote satire
01:36:08
difficulty finding a toilet using a van
01:36:10
there are no SEO guys on the list, but basic ones
01:36:17
sheet algorithms are always on hash this is us
01:36:19
Let's talk about optimization and what do we have?
01:36:22
there is still the very last one left and
01:36:24
the most straight brain
01:36:25
a tearing thing in a tired class strongly
01:36:33
tired
01:36:34
cool now I'm still going to tire you family and
01:36:39
then we'll take a break so look
01:36:47
there is a last one about what I tell me
01:36:49
told me but at least you should
01:36:52
to hear about this is called this thing
01:36:58
acne window functions wow wow wow yes no
01:37:05
I could, but I read it, wow, you're in
01:37:12
school that I dreamed of
01:37:15
Already big they should start to nose
01:37:19
ok look let's do that let's do that
01:37:32
let's start with an example with our group de here
01:37:34
we have a group go have our grades
01:37:38
[music]
01:37:39
boom boom 122 let's say 3 24 26
01:37:53
why not why can't there be an assessment
01:37:57
six and now we want
01:38:04
pain is not possible, now is the time
01:38:11
come up with something more interesting
01:38:18
let's still have a date, that is
01:38:24
let's say we got it there 0 1 0 1 this
01:38:30
there 2 0 2 0 2 this is 0 3 0 3 this is also 0 1 0
01:38:40
1 well boxing is not important here we are
01:38:46
now we want to withdraw
01:38:48
grades in the order they were received
01:38:55
let's say it will be quite simple
01:38:58
via a buy order, yes, but we are still
01:39:00
should we want to know if someone lets me
01:39:07
know first received a rating is acceptable
01:39:12
let's say which group passed the test first
01:39:15
let me exhale on the matan there
01:39:22
don't look we need to get that first
01:39:29
but no, which group received it first
01:39:36
let's just order and see how often
01:39:39
I'll write a request and come up with something in blue
01:39:42
by hon select now I eat like this
01:39:47
ru bir umr
01:39:59
steam quiet these are very difficult words I understand
01:40:05
I'm honestly crushing the bird, what do you care?
01:40:06
it was hard for you to understand that this is true
01:40:08
hard actually seconds very easy
01:40:10
parte shin bo and let's say group ID buy
01:40:20
dt
01:40:22
tun tun tun mark look now in short
01:40:35
remember the concept of groups that we
01:40:38
passed in rough
01:40:39
remember Shin Bo's parties and does the same
01:40:43
the most but his difference is that he is not
01:40:47
collapses these groups
01:40:49
he kind of does this this this this
01:40:52
the group is different from the window it makes a window
01:40:55
and in our case the window is this one
01:40:58
line and window this is this line and with
01:41:05
the same group and then we're in
01:41:09
within the group we begin to sort by
01:41:13
date and within this sorting
01:41:17
apply a function uniformly which
01:41:20
must be in parentheses and returned
01:41:24
and in fact we are returning it here
01:41:27
rough we supply here one here
01:41:30
one two and three
01:41:34
but in this case we use lines as groups
01:41:38
rude they turned me down
01:41:39
and we can actually do all these fields
01:41:42
return the group get out of here mark from here and
01:41:48
dt bomb and then we will return all these
01:41:52
four lines no order not mine
01:41:57
order when we don't ask for order
01:41:59
order we don't get we just here
01:42:02
here let's call this column with
01:42:04
s and here she will be
01:42:12
died yes that's the key word
01:42:14
overpair silence buy order buy the all
01:42:17
keywords no see parte shin bo
01:42:33
do you think this is equivalent
01:42:35
rudely in which they could write here
01:42:39
yes, but you can’t write parties in here
01:42:41
buy and there you can’t write rudely
01:42:43
that's how they came up with the baader buy order
01:42:46
they said that you can also call it well
01:42:48
not consistent and guys and now we
01:42:50
live with it somehow accordingly
01:42:57
thus introducing the concept of a window
01:43:02
a window differs from a group in that it
01:43:06
the window does not minimize the entire group it
01:43:09
Just
01:43:10
we are in this we are within this window
01:43:13
we sort and do something before actually
01:43:15
in fact, we can be here, well, we can be here
01:43:18
different functions exactly beer the simplest
01:43:22
I don't know if there is a piercing or
01:43:26
there look at the next line in
01:43:29
window there are some really complicated things
01:43:33
In fact, you can read about window functions
01:43:35
if you're interested, but what's important here?
01:43:38
look what's important is what's in this over clown
01:43:41
in this over expression you are here
01:43:44
after this function it is obligatory and
01:43:47
expression is an order buy the parties in
01:43:49
buy is not necessary if I have lots of tires
01:43:51
because I’ll skip it here, it will be considered that
01:43:54
I have all this one window and I’m starting
01:43:58
sort by date and put them from in
01:44:01
orders give this that is, this is here
01:44:03
there will be one it will be 2
01:44:05
it will be 3 it will be 4 roughly speaking
01:44:08
if you want to sort students
01:44:11
according to their average assessment, that is, they did not name
01:44:15
just sort and just even
01:44:21
I don’t know what place I took back there
01:44:26
there's some kind of average score there
01:44:29
quarter there I don’t know if there is some kind of session
01:44:32
then this throw set is just what you need
01:44:34
need to
01:44:39
you won't get a number but you won't get it
01:44:44
what line do you have, is it 2 or 3 or there
01:44:48
5 well, you'll just get a list
01:44:52
sorted and here and here and here
01:44:55
here you can write
01:44:56
where is my rubber band and in this one too
01:45:01
fill look here boom boom boom boom
01:45:04
boom I can write 1 here and look
01:45:07
I can write here
01:45:09
there is no difference in the fact that they fold
01:45:11
lines with rough
01:45:12
known write in c equals 2 well c
01:45:21
rough I mean the difference from rough so
01:45:26
it probably won't work but
01:45:27
the example is similar yes I made it up
01:45:33
this doesn't exist it's just a month and
01:45:37
day of the month is clear example of such clones
01:45:46
function up
01:45:52
here's a good question in this case
01:45:57
let's say roland barn will operate
01:46:00
let's say it says don't start here
01:46:03
0202 yes and we just he took the number
01:46:08
act like he would do 1234
01:46:13
that is, it will increase not the same but
01:46:17
there is another
01:46:20
horse function that will count them
01:46:22
identical
01:46:23
that is, roughly speaking, it’s like what is this
01:46:25
you in sports if two people don’t know
01:46:29
got the same result then
01:46:31
in some sports they occupy the same position
01:46:33
they share the first place, let’s say I don’t know in
01:46:36
swimming is possible there if they can’t
01:46:38
determine somewhere in some place they are all
01:46:41
anyway there is some additional
01:46:42
indicators one of them becomes
01:46:44
first is second second even if not
01:46:46
divided plus then and there are great difficulties
01:46:49
after that, yes, if you have two
01:46:51
people took first place, that is
01:46:54
there is no silver medal and not always
01:46:58
sometimes it exists and there are 4 winners
01:47:00
and sometimes you might have something like this
01:47:03
two people shared first place
01:47:05
silver disappears there is only bronze
01:47:07
Well, that is, in different sports it is
01:47:09
solved differently somewhere they don’t let through
01:47:12
this is a place where they don’t seem to be greedy
01:47:14
they distribute and in the window functions there is everything
01:47:17
implementation of such functions when you
01:47:19
you have to behave one way or another
01:47:22
question another question about verde indicate that
01:47:30
we have a further window and that’s not all yet
01:47:36
before I remembered some cool things but
01:47:42
ciklum the match is simple, that is, here you are
01:47:45
I wish I could tell you everything right now, it’s all
01:47:47
will know nothing more
01:47:49
Well, you can check there a little and it’s there
01:47:52
another type of operation that we are not talking about
01:47:54
we talked about operations on sets
01:48:01
but you all know they are the simplest ones
01:48:05
they are definitely class yes yes but repetition
01:48:13
mother of learning
01:48:14
therefore we repeat it means both him and him
01:48:19
not so yes there is more except
01:48:32
sometimes called minus there is also the most
01:48:38
difficult word to spell inter ct
01:48:45
what's interesting here but we're next
01:48:50
Let's look at it once, okay, or now
01:48:57
let's now we have two sets
01:49:02
11 and 21 we make you new out of them
01:49:15
that they will come back, there are so many of them
01:49:22
but I mean the sign we have is nowhere
01:49:24
this is not a set of correct before it is impossible
01:49:25
call it a set, it’s kind of like there
01:49:28
the cortege is actually a sign, that's why
01:49:30
tables are not a lot but
01:49:35
the result of the union operation is
01:49:38
a bunch of
01:49:39
so there will be no intersecting
01:49:42
12 elements are correct, exactly the same in
01:49:48
except yes that is all tribes
01:49:50
happy one of 2 you read when you
01:49:53
read 2 1 of 11 you will get that well
01:49:58
let's say if we are here to these two
01:50:00
we won't get anything with multitudes, but we
01:50:06
we get it as if it’s empty
01:50:11
that's it, intersect will return it to us
01:50:16
we are all one
01:50:20
and there are still not sure that in all
01:50:24
implementation is worse than the operation, he has zero
01:50:30
union all she seems to be saying simply
01:50:33
add two sets
01:50:35
that is, roughly speaking, or rather 1121 that is
01:50:40
just do the concatenation without this
01:50:42
without this muto there is a shadow out of many
01:50:50
yes of course watch it this is important
01:50:54
good question, see operations with
01:50:57
many acts seen before him too
01:51:04
got high a b c and d
01:51:11
that is, if we do union I get no
01:51:18
we do it in union here it is done on 12 and
01:51:20
we need to get over with intelligence then
01:51:24
there is, roughly speaking, let's say it
01:51:25
returns us select 1 and these select 2
01:51:30
it’s clear, but no, put it like that
01:51:39
so cunning he addressed these fields there
01:51:41
you are asking about the old answer in this
01:51:44
case, now we have something left
01:51:48
after subtracting 1 there would be one yes you are great
01:51:54
but we went through it, I think I can do it again
01:51:56
look Igor help your neighbor
01:52:05
good words, can you help these guys with anything?
01:52:09
union at you is a little different what
01:52:13
will return union for these two tables 12
01:52:18
June on
01:52:20
Igor don't you understand yes yes in the middle charge
01:52:32
just like intonation just a plus sign bambi
01:52:35
everything is wrong and I can’t do it all yes
01:52:47
let's sawfly so let's let's
01:52:51
let's do it this way, I'll invent it
01:52:54
requests you will write them on this is super
01:52:57
board and then other people will come
01:52:59
come up with requests, we will write them on
01:53:01
this is a super blackboard
01:53:02
who wants to be first oh my god how much
01:53:06
hands like, well, you were probably third
01:53:09
was the first listen out
01:53:12
I'll come up with an easy one for you first
01:53:14
I figured it out now you'll start there what's my name
01:53:18
Arkady we have a student sign we
01:53:21
we want to know how many entries there are in it
01:53:30
come on, are you going to knock now, no?
01:53:41
it started you see
01:53:48
yes yes at the same time I learned to write everything on this
01:53:52
super blackboard
01:53:53
then you will write in your resume who wrote it
01:53:55
cive
01:53:59
so look at the first rule we write
01:54:01
we try to write requests out of line yes
01:54:06
no way from this in one line select and
01:54:08
went to select from the rough oldboy then
01:54:12
there is like this yes under under the selector it is not
01:54:17
under this photo on the right yeah I want to know what
01:54:25
do you know the number of entries in the table?
01:54:28
students, well, I just want to know
01:54:30
number of students but you can go
01:54:42
nickname let's write to please whoever yes yes yes
01:54:46
look pierced write something
01:54:48
option that is, I open an account
01:54:54
an asterisk and you can write from
01:54:57
acceptable di yes the same would be with
01:55:00
he just wrote an opening parenthesis
01:55:02
asterisk or the same thing could have happened
01:55:05
write count opening parenthesis one yes
01:55:08
just look there is a function
01:55:11
account what's the difference if I write
01:55:15
just took it away from you to break it
01:55:19
let's say the account is not the version
01:55:27
count let's say 1 than the difference between these two
01:55:33
calculations but you knew they were great
01:55:39
just smart yes yes everything is correct
01:55:43
look at the count one as if there is always one
01:55:46
not to us that is to he counts the quantity
01:55:48
no cash lines who is the correct ID person
01:55:57
most likely it can’t be on y too
01:55:59
so these are equivalent entries
01:56:01
but if you write account and name to
01:56:09
it will actually call it
01:56:11
will mean the quantity is not on new ones
01:56:14
names on the sign Strelnya of course sooner
01:56:16
in total they are all there no cash it will be
01:56:18
the same but there is and can be a difference
01:56:20
so come out there whoever is Lyokha
01:56:24
next let's continue scout
01:56:27
exercise and of course basti
01:56:30
it's good to be afraid
01:56:34
so I just want to know the quantity
01:56:40
number of students with different names
01:56:49
students with different names
01:57:01
That's right, if you don't know, write select under
01:57:04
write to him frome maybe an idea will come
01:57:09
count one hundred percent quantity too
01:57:12
will be there
01:57:15
exactly yes, with different names is acceptable
01:57:45
Not
01:57:47
and this too, come on, write an asterisk there
01:57:57
units what will it mean if
01:58:01
let's say he writes there now or
01:58:03
one or an asterisk, how much will it be?
01:58:07
groups how many different names the account will return
01:58:13
we just have the number of these different names and
01:58:16
I asked for the number of different names not
01:58:23
just that Sergeev 5 Alekseev 5 I don’t know
01:58:27
there is slav 2 before and I want to know how much
01:58:30
look here there are two different names
01:58:39
option you need to either just wrap it in
01:58:42
upon request or I will show you another one later
01:58:48
shorter version don't bother me
01:58:51
first our task is to teach everyone no
01:58:59
wait no don't look here you are where is that
01:59:02
here you can already look we are now in
01:59:04
they will look up if you are now
01:59:05
just return the name from this selecta
01:59:10
you will only receive unique names for you
01:59:15
after that you need to count them like this
01:59:17
do wrap another select
01:59:24
just erase it in the sequel
01:59:30
what he wrote there somehow, his name is Arkady
01:59:44
yes well done right yes yes at least something
02:00:00
one move, even if we write an asterisk
02:00:02
from must be written and yes
02:00:06
distribute this time all the smoke will write to them than
02:00:08
yes, that's it, I don't know about there, I don't know about there
02:00:12
basically, that's okay, that's all
02:00:18
this is how it will work, it’s clear which is
02:00:21
there is an easy way for us to write like this
02:00:53
I didn't tell you that, no that's not it
02:00:56
said that action commands to write to you
02:01:00
didn't say that special said that
02:01:02
call you later and ask whatever
02:01:04
said clearly, that is, in the county there is
02:01:14
Here’s a feature you can write distinct not
02:01:17
to account listings
02:01:19
this is unique to the type number of different
02:01:23
names, I told you about another me
02:01:27
I'm telling you that in principle there is
02:01:29
the word distinct can be written like this
02:01:33
so select distinct
02:01:48
student yes yes that's the key word
02:01:53
distinct is actually practically
02:01:57
the same thing that I just wrote through rude
02:02:00
that is, this request will simply return to us
02:02:03
unique and the number of names and even that
02:02:08
it’s just easy to immediately count everything who
02:02:12
ready to be next come here
02:02:17
we'll come up with something for you
02:02:30
so let's assume that we have
02:02:35
sign sign with
02:02:44
student go, mark, I want you
02:02:53
calculated the average score for each student
02:03:04
screams you find yourself
02:03:07
select starts correctly let's call this
02:03:11
sign using mark to give and say
02:03:21
a little more space for
02:03:23
thoughts on the front and the select type is
02:03:30
very simple very simple until the end
02:03:35
I can do this chrome after selecta myself
02:03:43
always after select before
02:03:47
he was asked for the average grade of the students
02:03:50
find yes yes yes yes that is it's easy
02:03:59
Petrov received such a statement there
02:04:02
243 there
02:04:12
close yes, practically, well, it’s still possible here
02:04:16
display only student ID to understand
02:04:18
what the student got is just yours
02:04:20
option with this will be your request will be returned
02:04:23
I'm 1234 in short absolutely some
02:04:29
incomprehensible
02:04:30
yes who is ready to be out next
02:04:43
I want to know, don’t erase, I want to know night
02:04:53
I'll tell you nothing clicks at all
02:04:58
I want to know and I also need to be okay I want
02:05:04
find out the top, well, I want to know the 3 coolest
02:05:12
students by GPA
02:05:20
I breathe select written from written rude
02:05:23
it is written what to enter before smal daoud or
02:05:30
fuel limit what to write exactly come on
02:05:42
what to do I didn't just how and about
02:05:49
distinct why tell everything I will
02:05:51
ask you'll see surprised buy order like that
02:06:08
no no from little 4
02:06:13
washing, washing and rubbing
02:06:16
erase look so what we got now
02:06:20
we just
02:06:24
descending order of what I didn't actually torture
02:06:27
what no disk no first fields then what
02:06:30
so no no see it turns out wrong
02:06:35
bad, by the way, this has never happened at the board
02:06:38
was not the first time actually and this
02:06:44
won't work well because because
02:06:49
that you didn't name your column at all
02:06:51
beat you very much and what to call
02:06:54
now we have what to call yes there with because
02:06:59
what to call from mac in principle to do this
02:07:01
everything has grown together with m then word rbm does
02:07:12
before
02:07:20
and here it is given to write
02:07:25
the limit there is 10, yes
02:07:31
inside let's say so look there is
02:07:35
operation limit or you told the server
02:07:39
she's the top in regular databases she's spelled
02:07:43
the latest here is the limit sometimes
02:07:45
you can tell microsoft they are special
02:07:48
they write here the 3do top it’s the same
02:07:56
The best thing is that the guys just don’t want the limit
02:07:59
repeat themselves and want to be unique
02:08:01
that's why the perries come up with the same thing
02:08:03
it's not up to the piano standard as far as
02:08:05
I understand can be fixed in general
02:08:08
this limits the number of entries to
02:08:11
that is
02:08:12
Igor calculated the average score for us
02:08:18
Ruslana chose the leaders of the drive, he started it
02:08:23
the biggest ones and left only of them
02:08:26
three the only thing here is a subtle point
02:08:30
and I really don't know how he is
02:08:33
solved with a limit, let's say we have
02:08:35
excellent students you have groups of people
02:08:37
who have an average score of 50, that's me
02:08:44
such and let’s say there are four such people
02:08:48
imagine how it will be how it will be for them
02:08:52
it would be a shame for the fourth one
02:08:53
award 3 as if he is handsome too
02:08:56
but in fact up to 0 and God bless him even
02:08:59
one of them is 50 and all the others are there
02:09:03
49 and we take it off in general from such
02:09:07
here is the case, yes, I know for the top
02:09:11
there is such a design called
02:09:13
type of visa tires is called and it's like
02:09:19
will return not the top 3 but, as it were, three
02:09:26
and the last ponytail looks like it has swords, yes
02:09:30
that is, it doesn’t seem like anything
02:09:33
there are different ways to do this, let's do it
02:09:39
look, let's make this trick
02:09:41
then we will now call another person
02:09:44
who now wants to go to our
02:09:50
look at the board, let's do the same 3 same
02:09:57
cool only through these through legal ones
02:10:00
functions smell well to you anyway
02:10:07
you need to write select here
02:10:11
sure select
02:10:14
this is what we will have in frame and from
02:10:21
and then I write to you VR this is what I want
02:10:23
for it to be like this
02:10:24
m less than three let's say y no actually
02:10:30
actually not 3 but 3 is not enough 4 I want the first
02:10:36
three, yes, you know such tests
02:10:41
when there will be something missing
02:10:43
and you have to how would he do yes yes yes
02:10:48
like this is where you need to paste
02:10:50
I tell Arman what to install
02:10:52
writes something through a legitimate function, well
02:10:57
Well, let's say Ron Bard
02:11:03
well exactly the number of lines
02:11:05
let's say the anger rune is granted bere bere
02:11:11
parentheses are a type of function, yes
02:11:14
let's clean it all up this is this
02:11:18
we'll clean everything up so you have room
02:11:24
[music]
02:11:26
[laughter]
02:11:30
don't look it's spelled the crown amber later
02:11:51
always written over exactly then
02:11:54
the bracket opens and the magic begins
02:11:57
in which there are 2 2 of these things lots of tires
02:12:01
buy and buy order we need to place first
02:12:09
3 highest average students
02:12:15
point
02:12:17
1 yeah it started, there’s no place for you there
02:12:26
enough for this okay so come on come on
02:12:33
We'll erase this so it doesn't bother you
02:12:36
then more
02:12:41
no look sculpting me so funny
02:12:46
call it column
02:12:47
as it was called games for you no never
02:12:55
completed the request you and you to the hall before
02:13:08
this is all a bracket close the field call us
02:13:15
name the field as needed, name the field no
02:13:21
the field needs to be called and the same filters for them
02:13:25
Anapa from below you see in n4 everything is not like that
02:13:32
no wait, that's it, in short, yes, my God
02:13:42
belly now look at the magic of the veteran
02:13:46
erased let's do it like this until op op
02:14:00
s m everything like this when you wanted it there
02:14:04
so the guys understood what happened
02:14:07
realized black a lot, turn on already
02:14:12
Arman thank you then you will cut this one out
02:14:16
block from the video and I don’t know yes yes yes a
02:14:26
there was some kind of agreement, everyone understood
02:14:30
I just realized we launched the window function
02:14:42
who knows how to row set just knows how to
02:14:47
within the window and sorting assign to us
02:14:51
line number 1 2 3 4 5 line line
02:14:56
these are sorted by which we received
02:15:01
from this on request and here in yes everything
02:15:05
and accordingly we received this row
02:15:07
number actually actually if
02:15:09
be frank and honest
02:15:10
this query will not work because
02:15:16
because at this stage the columns are n
02:15:22
will not exist yet
02:15:24
Yes, and in fact, this is still needed
02:15:30
every 15 select wrap here
02:15:34
write select m there from this one
02:15:38
little thing and then you can filter
02:15:39
but I understand the idea, look at Sparta
02:15:48
tires are acceptable
02:15:49
come out let's say we want let's say we want
02:16:00
chat wait wait then don't come out here
02:16:10
it's nothing written
02:16:13
it's written the name of this one under
02:16:16
selecta sd it's called d why but you can
02:16:19
let's name its date, let's say
02:16:23
so look Arkady and please return it
02:16:30
let's say we still have a group there
02:16:37
can you make us return 3
02:16:40
not the coolest guys based on GPA
02:16:45
guys are just people by GPA
02:16:47
group to for each group .
02:16:50
the guys then act like all sorts of sexists
02:16:54
they shut up, well, yes, through the Shengi parties
02:17:00
you will need to sharpen it a little
02:17:01
most likely the internal request is clear
02:17:05
idea we want 3 coolest guys in
02:17:09
group to give them an increased
02:17:10
scholarship is the top three in each group
02:17:17
not just three in general at the university
02:17:20
let's say in the entire database of three everyone lies and
02:17:28
well, that’s okay, okay, I accept it
02:17:36
your challenge is going to be written off
02:17:41
parties in buy group dim you need
02:17:46
return him in a group where you didn’t return him
02:17:49
from the previous internal selecta I you
02:17:53
don’t believe me I can’t talk about anything else
02:17:56
you have a call in the inner select and not
02:18:00
returns as a group
02:18:08
let's say yes
02:18:17
and it won't work until because
02:18:24
rough no group de
02:18:25
and you can't return this column yeah
02:18:40
so nothing will change right well
02:18:45
you can't write like that
02:18:46
because this will be the average rating of everyone
02:18:50
students in the group, yes, but we wanted to return
02:18:54
3 best students in each group
02:18:59
[music]
02:19:01
yes yes yes and it will actually work
02:19:12
It’s clear that we still have to be there
02:19:14
select some fields, well, in principle, yes
02:19:16
it will work well here it’s supposed to be
02:19:19
understand that this is this, this is this, this is how this is
02:19:21
you need to read here we wrapped up here
02:19:29
here well how much dinned we have up to
02:19:44
within each group within each
02:19:47
groups in the sense of a student group
02:19:50
we will have our own n yes we will have there 123
02:19:54
for how many people group here
02:19:58
now Igor of course yes come on please
02:20:05
come out and do it so that if dude
02:20:11
C student, we never got him back
02:20:22
[laughter]
02:20:30
you can even do that with your fingers not only
02:20:33
chalk is not in the game, the mark is only on the actual
02:20:46
in fact it’s not possible yet because select
02:20:49
will only work after peeling
02:20:54
Handsome
02:20:58
above, well, here, too, the C students are so-so
02:21:02
as if more than four want to write well
02:21:10
ok well there is also in g that's right
02:21:12
that is, 31 will be 32, yeah, well
02:21:16
in short, more than four will be a mink
02:21:18
yes you can write more or equal
02:21:21
this is normal too, let’s just say no
02:21:25
principle al valida having worked
02:21:29
it turns out this is a useful thing
02:21:34
there is accordingly here we wrote 3
02:21:38
tried to return the 3 strongest
02:21:41
students but who have at least a score
02:21:45
four
02:21:46
so let's give them something
02:21:50
suggest another problem, we’ll come up with a great idea
02:21:55
Now we’ll come up with a join and write something like
02:21:58
we'll deliver
02:22:03
[music]
02:22:06
Sanya now we are someone so who are we 3
02:22:14
row wants to leave
02:22:15
blackboard come on you're cool so let's do it
02:22:21
Let's come up with a problem: what's the name Misha?
02:22:26
no one wants music mesh I need it
02:22:29
come up with it, okay, let's return the list
02:22:34
all students with the group name in
02:22:38
whom they learn I substitute everyone like this
02:22:45
specially rubbed include so select
02:23:00
water plastic yes yes yes
02:23:19
Well, let's say Misha will figure out how it will be
02:23:22
to be called that is, the name is roughly
02:23:24
just a group up or large you can too
02:23:29
do it just fine with your finger
02:23:32
we can do large ones excellently who submitted hb chrome
02:23:41
[music]
02:23:44
need to be returned in one list
02:23:47
student's name and group name
02:23:50
learn can't be worked down in
02:23:54
we will not consider such a group to have
02:23:57
for now let's start with the fact that he doesn't
02:24:00
he studies fundamentally well
02:24:02
several groups until students can
02:24:05
study in several groups said so
02:24:13
let's try to imagine what it would be like for you
02:24:16
we have one this student plate
02:24:21
we have a sign with students up in it
02:24:28
there is a dipole group there is a group sign
02:24:35
here yes means here there is on them and here
02:24:39
there are large before we are in general there are
02:24:55
there are large ones
02:25:00
and there is an idea for this group to
02:25:07
accordingly, they are connected through this
02:25:11
the field after frobo first write chrome
02:25:24
where do we get it from?
02:25:40
yes everything is correct so far everyone
02:25:50
students with their names
02:25:53
well it depends on whether it happens
02:25:58
students without groups you can be a student
02:26:02
Biesbruck University we will consider
02:26:05
what doesn't happen has begun
02:26:10
because then when the next person
02:26:13
will come and think so it happens
02:26:16
students who do not have a group
02:26:21
that means the columns in this one are large
02:26:23
some are small, okay, okay, I'll be there
02:26:28
provide this in your code and then
02:26:29
Damn Igor, I just wanted it
02:26:31
write as if why can’t it be a bluff
02:26:33
write it like this, this is roughly how it happens
02:26:36
but it already returns the same thing, like those
02:26:39
same data
02:26:40
2 2 groups it is clearly written there I thought
02:26:50
you need to eat now
02:26:55
name of the tables you will be with
02:26:57
jones yeah right now how do you get them
02:27:08
you will connect it will fit into yes yes
02:27:13
it's spelled he he
02:27:28
personally and now we will provide
02:27:31
we think that the students' nameplate contains
02:27:33
ID field
02:27:34
well, the same group day and this request
02:27:36
won't work then look
02:27:39
in short, look how he did he didn't
02:27:43
used aliases he just said
02:27:44
group go equals go and it will be
02:27:46
work if you have all the fields it
02:27:49
unique date named there is you on
02:27:51
the payday game only intersects with you
02:27:53
sign
02:27:54
1 and Aide of Tukov tablets 1 then there he is
02:27:57
will figure it out, but if not yes yes yes yes
02:28:02
you are there, like, well, yes, with g there, yes
02:28:19
ok, well done, so who else?
02:28:24
wants to let your neighbor in the back
02:28:29
don't be afraid, as everyone calls him, come out, come on
02:28:39
we will try to leave only those
02:28:44
students
02:28:46
a group called begins with
02:28:49
letters a whose group begins with a
02:29:06
group of which groups are possible and in full
02:29:18
there's really nothing wrong with miles
02:29:27
It's not so easy to put it all starts with
02:29:36
letters yes you can write it like that look
02:29:45
she's right in
02:29:48
well done thank you not so much
02:29:51
It's scary, look first of all
02:29:53
made by Ira
02:29:56
she didn't use an alias
02:30:00
right away by the name of the sign, so too
02:30:02
you can actually and the sheet like this
02:30:10
also possible secondly what did she do
02:30:12
I wrote to energy not through and it’s possible
02:30:16
was to write let's say it would be
02:30:19
absolutely in this case the same through
02:30:23
yes, that is, if you change these two
02:30:26
words would do nothing in this case
02:30:28
changed so who wants more you would
02:30:38
let's erase it all already
02:30:47
look I want it back I have it
02:30:54
sign
02:30:56
students sign students and eat
02:31:01
rating plate magician style no well here
02:31:09
it’s clear here and here and in inside
02:31:13
there are marks here I want everyone back
02:31:19
students who have not yet received grades
02:31:22
no at all I want everyone back
02:31:27
students who did not receive grades
02:31:31
I want to return the students ID
02:31:34
kotova which have no ratings yet
02:31:52
I don’t know, you can look at it differently
02:31:55
start max dividend won't work
02:32:13
so wait, let's not think about what
02:32:18
then join is great but not John is like that to
02:32:31
join this than with students is acceptable
02:32:43
no so what
02:32:54
no metro you can eat but from the outside
02:32:58
let's go
02:32:59
why won't john start?
02:33:01
Let's figure it out, let's go and what if
02:33:12
it turns out the students will be here come on
02:33:23
it just won't work yet
02:33:25
because he doesn't have you
02:34:04
fire and now you only see this
02:34:07
everyone understood the field
02:34:13
everyone understood exactly what happened
02:34:16
was give among
02:34:22
so look there are three outer join a fool
02:34:29
left and right right and then you say
02:34:33
what are you leaving behind
02:34:36
the right sign is inviolable
02:34:40
take all the lines from the right plate and
02:34:42
trying to reach her
02:34:45
attach a left sign if you are left
02:34:48
you can’t find the sign, you write here
02:34:52
if he wrote here as a student and
02:34:55
because mari you are looking for all the students
02:34:57
who have no grades, that is, without need
02:35:01
a student sign is required, that is,
02:35:03
for text for those lines like once upon a time
02:35:06
I didn’t find the rating here you are displaying and knew
02:35:12
this is how life is like, he's the best guy
02:35:15
cool request
02:35:18
You can also write it like this
02:35:31
there
02:35:33
selecta go
02:35:37
Well, of course, of course, a person who
02:35:41
I wrote glass for a long time, I would write it through the lion
02:35:44
g
02:35:45
because it's a tradition that
02:35:49
Almost no one writes Wright, that is
02:35:52
write down this is pure paradise joy
02:35:56
well, that’s how it is, but you’re right
02:35:59
wrote well done where am I
02:36:08
not in was select shame
02:36:24
Mark class seen like this I can’t
02:36:28
student getting a
02:36:43
[laughter]
02:36:45
By the way, inertia seems to me to be simple
02:36:54
amazingly clear what I wanted to say
02:37:03
look I'm solving the same thing
02:37:06
wrote via join and nights
02:37:10
through in one not in could you still
02:37:14
write like this 90 like this no like no
02:37:28
[music]
02:37:31
existential so well then select or else
02:37:44
Cupertino people
02:37:46
where there is no so before I will call
02:37:51
with there is a mark student if they led
02:38:12
screwed up it should work sense
02:38:16
is that I use
02:38:18
the design is not existential and I say that
02:38:22
please give me back those students for
02:38:24
which there are no rows with the same
02:38:28
shame like the ID on my sign in March
02:38:33
down and actually me this one
02:38:35
column feeling is important I can return it
02:38:37
let's just say one because not
02:38:40
basically I'm actually here
02:38:42
I work within the existential mode
02:38:51
until you just don’t exist and that’s for real
02:38:55
in fact, the request is again correlated if you
02:38:58
understood, yes, that is, I’m for him
02:39:00
correlates with this condition
02:39:02
natusya how to say how to
02:39:05
said please for every line
02:39:08
from here check if it exists here and
02:39:11
this is not a quick request but in principle
02:39:15
working loan square in the simplest
02:39:20
implementation further then if the optimizer
02:39:22
he will understand that he is like that but they were like that
02:39:27
we are trying to rebuild the request
02:39:29
let's rebuild through yours there
02:39:32
Lev Jonchik for Joni two sets
02:39:34
let's say behind the ent by everything so that more
02:39:44
I wanted to ask
02:39:45
let's do this thing for the last time we
02:39:52
today we will do it and go our separate ways
02:39:56
home
02:39:59
who wants it, let's just give it please
02:40:02
look we have 2 you were
02:40:10
and with speakers
02:40:14
a and b you were b rock smart a and b
02:40:26
problem I want to compare what these signs are
02:40:33
contain the same values
02:40:40
well, whatever it is, it’s really simple
02:40:43
I want to understand
02:40:44
the same meanings in these plates or
02:40:47
no, write to someone with ideas somehow
02:40:57
first of all I have two questions
02:41:02
signs in each of them two fields I want
02:41:05
Write a request like this to compare what
02:41:07
these plates have the same meaning or
02:41:14
write ready come out come on come out and
02:41:19
some name forgot 7 well done come on
02:41:22
come out
02:41:23
we have Arkady there is Arseny words
02:41:27
prem ke cool for everything at the factory
02:41:34
his name that the battle does not call arkash
02:41:36
you need it, you can even be a writer
02:41:40
special marker
02:41:42
you can say first and act union
02:41:52
equal to the intersection let's do it anyway
02:42:01
zero so politics with you such a site
02:42:11
that's right, well done, let's start, we'll rule
02:42:13
select from the selected wait let's go to
02:42:25
except or minus can be written
02:42:27
let's start all the lectures over again for now
02:42:30
we write in the column on the right in bags
02:42:34
Stalin didn’t look at the expression, where are you?
02:42:36
there was, do you know, the fight before the prom
02:42:54
where come from and don’t call me names, well that’s it
02:43:06
so come on come on now we're selecting out
02:43:17
columns from b let them write okay
02:43:36
realized that he had struck somewhere else, so
02:43:41
now all is well and cassettes or minus
02:43:46
if you want to learn let's say from
02:43:48
set set well let's say let's say
02:43:57
wrote tx m yes here no write
02:43:59
except that is, there will be only sound in
02:44:05
end not exit x and i cassettes
02:44:12
you collected wrote as an exception exactly
02:44:15
oh my god you are correcting us here as a test
02:44:17
the word xcx and still not, so what is it
02:44:23
let's look let's counterexample 12
02:44:28
13
02:44:30
he doesn't even just like that cm or 12 boom boom
02:44:34
boom Boom Boom
02:44:35
and here 12 13 everything is yours for just returning
02:44:46
no, he will return to himself, they say unscientifically
02:44:48
question yes he will return it just empty
02:44:53
empty denomination check let's junior
02:45:04
let's say we write here, let's say
02:45:06
let's just write uni here
02:45:15
how simpler it is, everyone is equal and work well
02:45:29
because it doesn't work until the end
02:45:34
it works, I’ll give you an example, it will say
02:45:37
that it won't work as much
02:45:38
will add a specific task we have
02:45:44
two signs you need to make sure that they
02:45:47
the same lines and what not he writes
02:46:01
completely different things but really
02:46:03
I think the same thing at least a little bit
02:46:10
one place you had to think gas
02:46:14
I say in one place it was necessary
02:46:16
think 3 and forgot about it, it will be like that
02:46:22
work requests why if
02:46:26
unique and another once yes
02:46:39
right, that is, roughly speaking, like this
02:46:41
example from here
02:46:46
before 12 12 everyone understands that these are different
02:46:52
signs but it's empty and the frames are correct
02:46:59
not ours our request will return yes from us
02:47:03
will return return empty we will count
02:47:05
that the request on the sign is the same
02:47:08
they are different and the same will happen no
02:47:22
look after any except and after
02:47:24
any interception from and in short not
02:47:40
fundamentally once you have used
02:47:41
any operation with a set except
02:47:44
union intercept you have lost what you have
02:47:48
you have, in short, collect you moved from
02:47:51
areas of strings to area set and all
02:47:55
as if in this one we lost as if before
02:47:59
count something
02:48:01
or something will somehow turn out
02:48:13
number of occurrences so be it
02:48:18
work approximately yes yes so understood the idea
02:48:23
that is, in fact, we look like
02:48:26
husband, as it were, well, that is, this is one of
02:48:28
one of the solutions and to the plate a.b.
02:48:34
add a column
02:48:39
c which will store the quantity a
02:48:48
and b
02:48:50
need number of pairs a and b
02:48:53
Well, it’s not just unique, but it’s clear that
02:48:56
for each pair for each unique
02:48:58
couple and bada number of unique park
02:49:00
I see, well, roughly speaking, right here
02:49:06
here column c will be 1 a
02:49:09
here it will be 22 before here and then if we
02:49:19
we'll get a column like this and then when
02:49:21
we will write just such a request
02:49:24
no longer in two columns but in three then
02:49:27
this will work before this it won't
02:49:31
there is no simple way to work and
02:49:35
in fact it is useful not only that
02:49:37
there is such a way, it is most likely there
02:49:39
will return more particles but imagine
02:49:42
what kind of tables do you actually have instead of these?
02:49:45
in fact there are some other select and and
02:49:47
took the output and wrote some select there
02:49:51
for 100 lines and then you took it and you think yes
02:49:53
this is generally nonsense, I’ll write it down at three
02:49:55
you know the lines, guess it from three notes once
02:49:57
wrote in 3 notes wrote you'll make it up
02:50:00
compare his character, well, you’re just like him
02:50:02
just to compare something like this
02:50:04
you can make an asterisk and check who
02:50:16
By
02:50:18
so not important let's say for example but how are you
02:50:20
you will do this as you compare the column here
02:50:22
here we compare the column with all
02:50:24
column values ​​would be yes but no but in
02:50:32
in general, who is one of the ways here?
02:50:33
right now the only thing we need
02:50:35
we need to come up with this as a column with although
02:50:38
I would like to write rude for one occasion
02:50:46
you can't, okay, you can, rude, show me how
02:50:50
show me, let's try, let's go out
02:50:55
and until there is silence through the steam zones it will work out
02:50:59
easier
02:51:02
everything will work out for you and through the rough too we
02:51:05
for example, the torso is just not just
02:51:08
here here write how I did it myself and
02:51:14
You fooled me, I think this is where select is
02:51:16
and just here let’s say a, b and
02:51:19
determine which column c is missing because
02:51:28
that you are always in how much you
02:51:45
write it on a piece of paper and then show it to me
02:51:47
ok we'll see how it goes
02:51:52
leave for a couple as if not even
02:51:55
you write down what’s just like home for you
02:52:00
write the assignment at home and then come back
02:52:02
try me in the chat or chaise if not
02:52:06
will allow you to spoil his paper must be done
02:52:10
why won't it work without a unit?
02:52:12
first you need to write often and go rudely
02:52:15
constantly rude and then
02:52:19
there was a front
02:52:27
rude let's leave it you can but you need
02:52:42
look you need to count the quantity
02:52:44
such couples of such groups actually
02:52:50
Actually, I just don’t know the account
02:52:53
why is daddy units not counting in principle
02:52:56
works within the group everything is like that
02:52:59
hips here, but you can do it another way through
02:53:05
ditch number through legal function yes so
02:53:07
well, how would you be here, how would it be
02:53:09
will work look he said that
02:53:11
rude I would have reduced everything to groups but added
02:53:16
how much extra is there for us?
02:53:18
in fact, due to sss before, I only added
02:53:22
Hello, did you realize how many such groups there are?
02:53:25
I don’t know how many cardinals these are
02:53:27
I don’t know how many such groups there are out there
02:53:29
would like to compare these records later
02:53:32
in three like this it will be possible
02:53:33
compare it will work give or take
02:53:35
same here is a question for today
02:53:41
I have a couple of questions for you pir question
02:53:44
how do you like it es que el is it normal
02:53:48
wrong answer to so good
02:53:52
fire should answer then how would I
02:53:56
I'm happy and if not that's all for today
02:54:01
I told you everything I wanted, thank you
02:54:04
big

Description:

Другие лекции курса: https://www.youtube.com/playlist?list=PLrCZzMib1e9reQb3ZXLWVaEu2CM3R54ho&playnext=1&index=1 Подробнее о курсе: https://polis.vk.company/social/after-login/?next=/curriculum/program/discipline/790/#auth Лекция Сергея Михалева по курсу «Использование баз данных» в рамках образовательного проекта Технополиса. Семейство функций JOIN и соединение таблиц. Агрегация: функции COUNT,MIN,MAX и др., GROUP BY и HAVING. UNION. Использование подзапросов. Понятие VIEW. Транзакции. Конкуренция, параллельность и согласованность. Взаимовлияние транзакций и проблемы lost update, dirty read, non-repeatable read и phantom read. Уровни изоляции ANSI/ISO. SET TRANSACTION ISOLATION LEVEL. Блокировки. Смотрите также: ► Курс "Использование баз данных (Технополис, весна 2017)" - https://www.youtube.com/playlist?list=PLrCZzMib1e9quWpe1VS-kpOsU6Cfj8Z0K ► Курс "Введение в Java (Технополис, весна 2019)" - https://www.youtube.com/playlist?list=PLrCZzMib1e9pz7f30YqoBLY0_AfiC36kM ___ ТЕХНОСТРИМ - образовательный канал для IT специалистов. ___ ПОДПИСЫВАЙСЯ, ЕСЛИ ТЕБЕ ИНТЕРЕСНО УЗНАТЬ: ✔ как наши преподаватели – топовые специалисты Mail.Ru Group руководят разработкой в таких проектах, как Почта, ВКонтакте, Облако, Maps.me, Одноклассники, и решают сложные задачи каждый день ✔ реальные примеры из практики с анализом их достоинств и недостатков ✔ современные технологии, которые применяются в проектах-лидера Рунета ✔ о митапах, мастер-классах, вебинарах и других мероприятиях, которые проводятся на базе вузов и Mail.Ru Group. Нажмите здесь для подписки ‣ https://www.youtube.com/TPMGTU?sub_confirmation=1 Все наши лекции проходят в ведущих вузах страны: МГУ, МГТУ, МФТИ, МИФИ, СПбПУ. ___ ТЫ СТУДЕНТ? Вступай в наши образовательные проекты и участвуй в чемпионатах. Лучшие студенты получают возможность стажировки в Mail.Ru Group. Отбор - каждые полгода! Технопарк при МГТУ им. Баумана ‣ https://park.vk.company/ Техносфера при МГУ им. Ломоносова ‣ https://sphere.vk.company/ Технотрек при МФТИ ‣ https://track.mail.ru Техноатом при МИФИ ‣ https://technoatom.mail.ru/ Технополис при СПбПУ ‣ https://polis.vk.company/ Чемпионаты для программистов ‣ https://cups.online/ Mail.Ru Group для образования ‣ https://vk.com/mrgforedu

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "3. Использование баз данных. Запросы | Технострим" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "3. Использование баз данных. Запросы | Технострим" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "3. Использование баз данных. Запросы | Технострим" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "3. Использование баз данных. Запросы | Технострим" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "3. Использование баз данных. Запросы | Технострим"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "3. Использование баз данных. Запросы | Технострим"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.