CRUD - Database Notes
CRUD - Database Notes
Evening
2 Lecture begins at 9 05
3
Topic Select Query
Agenda
1 Insert Update Delete
2 Select Column
Rowe
02
Select Query Rad Data
Basic Syntax
Select column
FROM E Tbls 7 A
w Hara conditions A optional
ORDER BY Conan can g
1 Select
Qfumetmak
Fiesta
2 ALIAS Give names to columns
by using As
Select a
FROM customers
From customers
From customers
6 Rows
Filtering
Students
1
1 A
it
R 2
2
3 C
In
2
D
5 E I la
Select a
id jam kid
students u D 2
From
Where bid 2
I 2 7 E Z
Operators
2 Equals
3
23 Not equal
Don't use or a with
NULL
IS OPERATOR
IN combing many or
operator
students
i
T
5 E
I F 3 t
a
É
Select
FROM Students
Whare id 2 OR
id Y on
id 5 OR
id 6
SEI ACT D
fwtsreidtnfa
FROM students
4
gs
Z
10 to o1o
IBriek
Out of scope questions
Hp off
Hash
COLLATION Setting to
GIcasa table
sensitivity of
3
1in
Select a
e abe
3 ABC
4 abe
Batches
t
Fi z
fer
5
2022 Adv
4 Ay
2021 Beg
Ay
Select
FROM Batches
Whare name Elke t inter
Aginter
ginter
I intu
into
Oton
characters
more Hug July
inter 22
Ay 27
By
Any a Stu
Ang't
22 Adv
Ay
Adv 22
Ay
i I intuxyz
O cen if
man
inter
man
Y 0 a
chare
special characters
exactly 1
character
Y t
c
g Chicago
to a FI
f
C Ing
of man
m
a
Select
FROM Batches
c
gt
u Chicago
Select a
fungrenalite's Batches
Io
ORDER BY
Student
Select a
f
Xyz student
É
from
Y ab e
Hmu
sorted by Pk
Sort it name Default is ascending
by
SELECT D id name
SELECT a id noun
I Xyz
FROM student
Dase
3 ghi
ORDER BY name
u def
2 abc
I 2 3 4 to
100 results
Select s
FROM Tble
LIMIT TO
OFFSET 30
LIMIT 30 10 Limit to
IFFST30