All language subtitles for 2. SUM

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 Let us look at the sum function 1

Sum function as you can guess 2

Returns the sum value or the aggregate value of the expression that you have given it as an input 3

The syntax for sum function is select 4

Sum mention the column name 5

Then you can give additional column names if you want to 6

From table name 7

Then you can give conditions 8

Specify condition using the where statement 9

If you want to 10

Let us look at some example 11

Suppose you want to find out the total profit you have earned 12

So if you go to the sales table 13

There is a separate column named 14

Profit 15

I want to get the total sum of all the profit values 16

How to do that 17

Select sum 18

Of the profit column 19

As total profit this is the alias I am providing to this column 20

From sales table 21

Let us go and write this 22

Now I will write the sum Query 23

Query 24

Select 25

Sum 26

The profit column so profit 27

Name this column as total profit 28

And I'll mention the table name from sales 29

The query has return the result, the total profit 30

I have earned is 31

nearly 286,000 32

Not let us look at 33

Using the sum function along with a specified condition that is using where 34

If I want to find out 35

What is the total quantity of a particular product that I have sold 36

To find that out, I will write select sum of quantity 37

As total quantity 38

From 39

Orders where product ID is this particular product ID, so how many of this particular product 40

I have sold 41

Let us go and find out 42

Select sum 43

Of quantity 44

As total quantity 45

From tablename where 46

Product ID 47

This one 48

So 49

The total quantity of this particular product ID sold is 29 50

So that is how sum function is used, to find out aggregate or totals 51

Next we'll look at how to use 52

Average functions

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