Lesson 1.2 - SQL Fundamentals (Filtering Statements)
Lesson 1.2 - SQL Fundamentals (Filtering Statements)
Filtering
youcanfit eue
WHERE
the
statement
I
filtering
on
we do
filter theor as
filtering
columns
A
you
by
the
not
mentioning
column
are base on a specific
condition
If do not mention
you
the column name in the
SELECT statement it will
be excluded
from
the final autput
Salary table
-
# HR
SELECT
Name
,
Salary
FROM
salary-table
WHERE 20000
Salary
>
# ~
Inclusive
[
BETWEEN comn-names
FROM table-name
SELECT Name
, WHERE columnname
Department, valuel
AND
BETWEEN
Salary valuez
FROM
WHERE -Salary
BETWEEN And
salary-table
column Start Included end
#m
Depart m /
as
~ you specify the
IN statement
Specific
need
thing
that
you
in specific
column
=>
(Durbani
prote
*
SELECT
FROM orders
WHERE City
~
lucludeswhatyou set a
SELECT productname
FROM orders
,
City Excludes
WHERE
city NOT IN ('Giyani
-
I
operator
-both
must
conditions
be meant
Loneo est th
be meant
T
AND operator Syntax limitted
SELECT not
column ,
columns ,
Columns , youhowmana
can
column
FROM table -
name
OR operator
SELECT
column ,
columns ,
Columns ,
column
FROM table -
name
NOT operator
SELECT column
,
Columna
From
/
largest
-
SELECT column-names
FROM table -
name
#. .