All language subtitles for 6. Right Join

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

0 Now, let us see the right join. Right join is similar to left join only that when we are doing the right join all rows 1

of the table b will be kept in the result set 2

Even if it is not present in the table A, wherever the table a vlaue is not present, will get null values. 3

This syntex of right join is also same only instead of left join we will write right join. 4

Let us look at the example. 5

So last time when we did left join, we were finding out against each sales order. 6

Who was the customer? 7

Even if there were some records where we did not have customer names, this time we want to find out 8

against all customer names if there is any sales value or not. 9

This we will do by using the right join on the customer table. 10

So customer table will be our table b again. 11

But we will have all values of this. 12

table b because will be doing the right join. 13

So what happens here is we will select all the column that we want with the same as the earlier examples 14

from sales table, which is our table a. Right join on table B, which is customer table. 15

Since we want all values of customers. 16

On the common field is customer id, and then we will order it by customer id, let's go and write this in the pgAdmin interface. 17

So again, you can see 10315 is not present in customer table. 18

Will this be President in the ResultSet? take a guess 19

10375 is President in both tables, 10480 is not present in sales table, So guess 20

which of these will be President in the ResultSet let us find out. 21

So select. 22

a.orderline 23

a.product id 24

a.customer id 25

sales. 26

next is b.customer name. 27

and b dot 28

Age from table a is our sales table 29

2015 as a. Right join 30

on customer table customer 2060 as b common field is customer id. 31

And we will ordered it by 32

customer id 33

Run. 34

So let's see which is present and which is not present, one zero three one five is not present. 35

Why is it not present, because it is not present in the customer table and we have done a right join. So, 36

all values of customer table should be present. 37

If it is not present in customer table, it should not be there. 38

So A10315 is not there. 39

10375 is present in both tables it should be there. But can you find 10480 40

? 41

It is not present in the sales table, but it is present in the customer table, so it should be part of the result set 42

Since Whiteaker, they join, but it is not here. 43

Where is it? 44

So let us go down. 45

And see that there are some values where customer that is coming as. 46

But it is part of the ResultSet. 47

These are the values, these are the records of customer table, which are here because these were not 48

present in the sales table and that is why it is giving a customer the idea of knowledge. 49

Since we were taking the customer I a table where there was no such record to get these records, let 50

us get the customer different. 51

They will be so let us change it to be and now run this query. 52

Now you can see. 53

Here is your customer ready, a one zero four zero. 54

You get the customer name and age because it is present in the customer table. 55

We are not getting the order line productivity and the sales value because it is not traditional staple. 56

And the second thing is this, customarily one zero three seven five. 57

This was present only once in the customizable. 58

So when I told you that it is taking out all the records of customer table, you may have thought that 59

it will give only one record and the is all set for this customer ready. 60

But that is not so since there were four different order values in the sales table for this particular 61

customer. 62

The ResultSet will have four different rules for this customer. 63

This is the concept I was conveying in the last letter also that if you want single value in the customer 64

table, you should ensure that the key that you're using should be primary or unique in the other table. 65

So this customer adds, if it was a unique key in the sales table, there would have been only one rule. 66

So this is how we use Ridvan. 67

In the next lecture, we will look at the Autotuning.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.