Lesson 1 - SQL Fundamentals (SELECT, WHERE)
Lesson 1 - SQL Fundamentals (SELECT, WHERE)
Query Languagea
(L san
Structured Data
stored in tables
ItallowsyootableColumns
*
Allows
·
allows to
from your
to
choose
select
specific
table
all the
rows
you
and columns
Name that
FROM Students ; in you
the
specing
SELEC
ident m
statement
Statement will
b
SQL
Syntax
:
*
① SELECT FROM table -
name ;
& Returns and all the
all the rows
columns
automatically
② SELECT column) ,
Columna,
column 3
FROM table-name ;
2
FROM table -
name
ISTINCT
#
Customers means
want to
see different
-
que
I
SELECT DISTINCT
a
city
FROM customers
j
Here
#
~
It will return the
SELECT column column names
, specified
columna , but it will limit the
Column 3 output to
only two
rows .
FROM table -
name
Affectsthere
LIMIT 2 ;
=
SELECT
OCustomerName
city
,
Affects
rows the
Comparison Operators
= Greater than or
Equal to
filtering
data
#SELECT
customer Name,
City
FROM customers
WHERE =Soweto)
city ;
#Name
City
t -
SQL is not case sensative