0% found this document useful (0 votes)
17 views

CRUD - Database Notes

Uploaded by

106palaksharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

CRUD - Database Notes

Uploaded by

106palaksharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

1 Good

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

3 All rows all columns table


from a

Select a

FROM customers

U Limit Reorder Columns

Select points last


first name name

From customers

5 Columns with expression


Select points 2s points

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

NULL NULL 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

tasyntaa Case Insensitive

3
1in

Select a

From t whim nom


II
CS Cs
id name
ABI
1 ABC af f

e abe

3 ABC
4 abe

Batches
t
Fi z

July 2072 Adv


2077
3 July By
w
Aug

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

Whare name Lille I

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

FROM students 2 abc


u
ORDER BY name def
3 Shi
I Xyz

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

You might also like