All language subtitles for 9. WHERE

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

In the last video, we learned how to retrieve all the rows of the table.

Let us now look at how to retrieve data, which is satisfying a particular specified condition.

Condition is specified using the clause.

Let us see the syntax of this clause.

It starts with select.

You enter all the column names which you want to retrieve from the table name, and then you specify

the condition after the where clause.

Let us look at some examples of these conditions.

Let's say we want to find out if there is any customer who is 25 years old.

This is how we do it.

Select first name from Customer table where age is equal to 25.

This age is equal to 25 will be the condition.

If it is satisfied, we will get a response back.

If it is not, we will get a null response back.

Let us run this query.

Select first name.

From customer table.

Where it is equal to.

25.

Only the customer with first name G is having age 25.

If you wanted the distinct values, you could have used select distinct roles that would have given

you distinct response.

Let us do that.

Run it.

You see, only one G returned.

Now, if you want to put a condition of age more than 25.

You can just change this equal to sign to greater than sign.

And then run this query.

The condition that we apply right now is numeric and correct.

That is, we are checking if that particular number is equal to or more than 25 or not.

We can put conditions on textual variables also.

You can match the variable.

So, for example, if you want to get all the information of the customer with first name G.

We will select star.

From customer table.

We're.

First name.

The.

This query.

You can see all the columns have been retrieved, but only those rows we have got as a result which

have first name as G.

One more thing you can note is in the previous query, we retrieved only first name, but we put a check

on the Age column.

So these two columns were different.

This is allowed by PostgreSQL.

So some variants of the SQL Server would make it necessary that the column on which you put your condition

is part of your selected columns.

But the way we wrote the query that is allowed by PostgreSQL.

So in this video we learned how to put condition while retrieving data.

Next, we will learn how to put multiple conditions at the same time in the same query using an and

or operator.

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